From: pepp Date: Tue, 12 Apr 2011 15:42:02 +0000 (+0200) Subject: st/mesa: assign renderbuffer's format field when allocating storage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd6f2d6e5783d8810d0ab88e1c470958fd5eb2eb;p=mesa.git st/mesa: assign renderbuffer's format field when allocating storage 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 --- diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index e632d816542..755b6bcf967 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -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 */