diff options
author | Brian Paul <brianp@vmware.com> | 2009-12-30 14:49:49 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-12-31 08:49:26 -0700 |
commit | 2be0d77a97cbe92f09dd97fb85a3d5372e52ad4c (patch) | |
tree | 69ac62794a4e859e1d883914b6304484aa101bde /src/mesa/main/condrender.c | |
parent | 0fbe828c1d2a7e7d9155a3ef64e91da4ec2b79ee (diff) |
mesa: add flag for GL_NV_conditional_render extension
Diffstat (limited to 'src/mesa/main/condrender.c')
-rw-r--r-- | src/mesa/main/condrender.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/condrender.c b/src/mesa/main/condrender.c index 52762133a0..4e1989c869 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; } |