aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/texrender.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-04-30 14:43:27 +0000
committermarha <marha@users.sourceforge.net>2011-04-30 14:43:27 +0000
commitc4ae0bb951bfb6061e7f0c492ba03de330137515 (patch)
treef1236eb9fdabf7ca199522b748789b4b5d15cd9d /mesalib/src/mesa/main/texrender.c
parent2df2595ab27b00523dbbdd0d3661a97610f5a137 (diff)
downloadvcxsrv-c4ae0bb951bfb6061e7f0c492ba03de330137515.tar.gz
vcxsrv-c4ae0bb951bfb6061e7f0c492ba03de330137515.tar.bz2
vcxsrv-c4ae0bb951bfb6061e7f0c492ba03de330137515.zip
xserver mesa xkeyboard-config git update 30 Apr 2011
Diffstat (limited to 'mesalib/src/mesa/main/texrender.c')
-rw-r--r--mesalib/src/mesa/main/texrender.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesalib/src/mesa/main/texrender.c b/mesalib/src/mesa/main/texrender.c
index 2766bd6c5..4bcef9899 100644
--- a/mesalib/src/mesa/main/texrender.c
+++ b/mesalib/src/mesa/main/texrender.c
@@ -530,6 +530,7 @@ update_wrapper(struct gl_context *ctx, struct gl_renderbuffer_attachment *att)
{
struct texture_renderbuffer *trb
= (struct texture_renderbuffer *) att->Renderbuffer;
+ GLuint unused;
(void) ctx;
ASSERT(trb);
@@ -602,8 +603,10 @@ update_wrapper(struct gl_context *ctx, struct gl_renderbuffer_attachment *att)
trb->Base._BaseFormat = GL_RGBA;
break;
default:
- trb->Base.DataType = CHAN_TYPE;
- trb->Base._BaseFormat = GL_RGBA;
+ _mesa_format_to_type_and_comps(trb->TexImage->TexFormat,
+ &trb->Base.DataType, &unused);
+ trb->Base._BaseFormat =
+ _mesa_base_fbo_format(ctx, trb->TexImage->InternalFormat);
}
trb->Base.Data = trb->TexImage->Data;
}