Module: Mesa Branch: 7.10 Commit: 1b8df41f7586aff2b449a594c296bd41cc95552e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b8df41f7586aff2b449a594c296bd41cc95552e
Author: pepp <[email protected]> Date: Tue Apr 12 17:42:02 2011 +0200 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 <[email protected]> (cherry picked from commit fd6f2d6e5783d8810d0ab88e1c470958fd5eb2eb) --- src/mesa/state_tracker/st_cb_fbo.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 473ed4d..2ecda93 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -87,6 +87,7 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *r 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 */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
