From 45e2cc0db0dd1fac1d4115c09601ed437ed8c0de Mon Sep 17 00:00:00 2001 From: pepp Date: Tue, 12 Apr 2011 17:42:02 +0200 Subject: [PATCH] added assignement of struct renderbuffer's 'format' field when using fbo --- 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 e632d81..755b6bc 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 */ -- 1.7.4.1