st/mesa: assign renderbuffer's format field when allocating storage
authorpepp <pelloux@gmail.com>
Tue, 12 Apr 2011 15:42:02 +0000 (17:42 +0200)
committerBrian Paul <brianp@vmware.com>
Sat, 21 May 2011 15:49:14 +0000 (09:49 -0600)
See http://bugs.freedesktop.org/show_bug.cgi?id=36173

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c

index e632d8165428db013eb76633cf2eef0762cbfdd9..755b6bcf967122a85f36b4a670f53d35b9400d4e 100644 (file)
@@ -90,6 +90,7 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx,
    strb->Base.Format = st_pipe_format_to_mesa_format(format);
    strb->Base._BaseFormat = _mesa_base_fbo_format(ctx, internalFormat);
    strb->Base.DataType = st_format_datatype(format);
+   strb->format = format;
 
    strb->defined = GL_FALSE;  /* undefined contents now */