From: Brian Paul Date: Thu, 31 Dec 2009 04:40:03 +0000 (-0700) Subject: tnl: add check for conditional rendering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=699cfaeb3cde2a329b2d79ae09c7783ed4edacfe;p=mesa.git tnl: add check for conditional rendering --- 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);