swrast: Disable glAccum drawing during conditional rendering.
authorEric Anholt <eric@anholt.net>
Thu, 21 Apr 2011 23:52:21 +0000 (16:52 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 23 Apr 2011 20:21:56 +0000 (13:21 -0700)
src/mesa/swrast/s_accum.c

index 88d107a..0ec907d 100644 (file)
@@ -24,6 +24,7 @@
 
 
 #include "main/glheader.h"
+#include "main/condrender.h"
 #include "main/context.h"
 #include "main/macros.h"
 #include "main/imports.h"
@@ -553,6 +554,9 @@ _swrast_Accum(struct gl_context *ctx, GLenum op, GLfloat value)
       return;
    }
 
+   if (!_mesa_check_conditional_render(ctx))
+      return;
+
    swrast_render_start(ctx);
 
    /* Compute region after calling swrast_render_start() so that we know the