summaryrefslogtreecommitdiff
path: root/src/mesa/main/condrender.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-30 14:49:49 -0700
committerBrian Paul <brianp@vmware.com>2009-12-31 08:49:26 -0700
commit2be0d77a97cbe92f09dd97fb85a3d5372e52ad4c (patch)
tree69ac62794a4e859e1d883914b6304484aa101bde /src/mesa/main/condrender.c
parent0fbe828c1d2a7e7d9155a3ef64e91da4ec2b79ee (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.c4
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;
}