summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/condrender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/condrender.c')
-rw-r--r--src/mesa/main/condrender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/condrender.c b/src/mesa/main/condrender.c
index 52762133a0e..4e1989c8697 100644
--- a/src/mesa/main/condrender.c
+++ b/src/mesa/main/condrender.c
@@ -43,7 +43,7 @@ _mesa_BeginConditionalRender(GLuint queryId, GLenum mode)
struct gl_query_object *q;
GET_CURRENT_CONTEXT(ctx);
- if (ctx->Query.CondRenderQuery) {
+ if (!ctx->Extensions.NV_conditional_render || ctx->Query.CondRenderQuery) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glBeginConditionalRender()");
return;
}
@@ -89,7 +89,7 @@ _mesa_EndConditionalRender(void)
{
GET_CURRENT_CONTEXT(ctx);
- if (!ctx->Query.CondRenderQuery) {
+ if (!ctx->Extensions.NV_conditional_render || !ctx->Query.CondRenderQuery) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glEndConditionalRender()");
return;
}