Mesa (master): mesa: update multisample state on _NEW_BUFFERS

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Tue Aug 30 11:57:15 UTC 2011


Module: Mesa
Branch: master
Commit: fb92fc25b00beda4df48865670c8769c7a669aac
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb92fc25b00beda4df48865670c8769c7a669aac

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Aug 27 17:28:01 2011 +0200

mesa: update multisample state on _NEW_BUFFERS

A change in sampleBuffers affects the final enable value.

---

 src/mesa/main/state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 7ad50bc..457a730 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -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)




More information about the mesa-commit mailing list