diff options
author | Brian <[email protected]> | 2007-10-17 12:27:40 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-17 12:27:40 -0600 |
commit | 4338f0f709255cc4d69d01b9aca579bca31ac269 (patch) | |
tree | df157ddc41ec9ed534e176790bf2dfcd29de26de | |
parent | 2dd27cfdd981b3b2c973066082b1168c4cb6f42c (diff) |
Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer)
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 6 |
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 |