From: Brian Date: Wed, 17 Oct 2007 18:27:40 +0000 (-0600) Subject: Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4338f0f709255cc4d69d01b9aca579bca31ac269;p=mesa.git Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer) --- 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