Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer)
authorBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:27:40 +0000 (12:27 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:27:40 +0000 (12:27 -0600)
src/mesa/state_tracker/st_atom_framebuffer.c

index ccbeacfd6e87d4a6b9ba13b49f53315490113c8c..a6caf3f5ff994eaa687277a77f70585e78d4ab07 100644 (file)
@@ -84,10 +84,14 @@ update_framebuffer_state( struct st_context *st )
 }
 
 
+/**
+ * Note that glDrawBuffer() sets _NEW_COLOR, not _NEW_BUFFER.
+ */
+
 const struct st_tracked_state st_update_framebuffer = {
    .name = "st_update_framebuffer",
    .dirty = {
-      .mesa = _NEW_BUFFERS,
+      .mesa = (_NEW_BUFFERS | _NEW_COLOR),
       .st  = 0,
    },
    .update = update_framebuffer_state