aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-08-10 09:57:05 -0600
committerIan Romanick <[email protected]>2012-10-24 11:41:05 -0700
commitb28f4a0abd6bf5a5f023a7a37bd1b43dff1995bb (patch)
treee13b66d194fbb4aca35dbbe0b00cae606d4eab8e
parent1417f429049c32e9e27dba92f230992bcf2d8a92 (diff)
st/mesa: fix renderbuffer validation bug
After we attach a new renderbuffer in this function we need to make sure Mesa's update_framebuffer() gets called. Fixes crash in WebGL conformance/textures/texture-attachment-formats.html, but the test still fails for other reasons. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=53316 Note: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca <[email protected]> (cherry picked from commit cf77c29e6015d177c046adee3c48589cc9fb5015)
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 215e9194c77..c3e79ae0d7d 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -422,6 +422,12 @@ st_render_texture(struct gl_context *ctx,
* passed to the pipe as a (color/depth) render target.
*/
st_invalidate_state(ctx, _NEW_BUFFERS);
+
+
+ /* Need to trigger a call to update_framebuffer() since we just
+ * attached a new renderbuffer.
+ */
+ ctx->NewState |= _NEW_BUFFERS;
}