mesa: update multisample state on _NEW_BUFFERS
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 27 Aug 2011 15:28:01 +0000 (17:28 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 30 Aug 2011 11:55:07 +0000 (13:55 +0200)
A change in sampleBuffers affects the final enable value.

src/mesa/main/state.c

index 7ad50bcaddcfeb78b6a8c287056858f2734bf35d..457a730deeae6883c4abee6bee2c70a44b561cb2 100644 (file)
@@ -631,7 +631,7 @@ _mesa_update_state_locked( struct gl_context *ctx )
    if (new_state & (_NEW_BUFFERS | _NEW_VIEWPORT))
       update_viewport_matrix(ctx);
 
-   if (new_state & _NEW_MULTISAMPLE)
+   if (new_state & (_NEW_MULTISAMPLE | _NEW_BUFFERS))
       update_multisample( ctx );
 
    if (new_state & _NEW_COLOR)