summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-30 21:40:03 -0700
committerBrian Paul <[email protected]>2009-12-31 08:49:26 -0700
commit699cfaeb3cde2a329b2d79ae09c7783ed4edacfe (patch)
treee3d036d2337e92f836fd707c2d98ef8ed8349337 /src
parentff3a52643d323626f32a9f1c14464a9501e6494d (diff)
tnl: add check for conditional rendering
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl/t_draw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index 1c7c733883c..d31b29b9b40 100644
--- a/src/mesa/tnl/t_draw.c
+++ b/src/mesa/tnl/t_draw.c
@@ -26,6 +26,7 @@
*/
#include "main/glheader.h"
+#include "main/condrender.h"
#include "main/context.h"
#include "main/imports.h"
#include "main/state.h"
@@ -386,6 +387,9 @@ void _tnl_draw_prims( GLcontext *ctx,
GLuint max_basevertex = prim->basevertex;
GLuint i;
+ if (!_mesa_check_conditional_render(ctx))
+ return; /* don't draw */
+
for (i = 1; i < nr_prims; i++)
max_basevertex = MAX2(max_basevertex, prim[i].basevertex);