aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-17 12:27:40 -0600
committerBrian <[email protected]>2007-10-17 12:27:40 -0600
commit4338f0f709255cc4d69d01b9aca579bca31ac269 (patch)
treedf157ddc41ec9ed534e176790bf2dfcd29de26de
parent2dd27cfdd981b3b2c973066082b1168c4cb6f42c (diff)
Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer)
-rw-r--r--src/mesa/state_tracker/st_atom_framebuffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c
index ccbeacfd6e8..a6caf3f5ff9 100644
--- a/src/mesa/state_tracker/st_atom_framebuffer.c
+++ b/src/mesa/state_tracker/st_atom_framebuffer.c
@@ -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