mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 01:40:43 +01:00
tnl: add check for conditional rendering
This commit is contained in:
parent
ff3a52643d
commit
699cfaeb3c
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue