summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-11-28 18:18:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-11-28 18:18:50 +0000
commitc99e2dd1d38db25d393a33870778a8eeb1a23020 (patch)
treefab8b078609c410404d248a4e5d5246a8ee45ab3 /src
parentba9dc7ecf385a8896c84888e61d6a3573e72a78d (diff)
fix an error test
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/occlude.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/occlude.c b/src/mesa/main/occlude.c
index 1285874ef6..73a29cc939 100644
--- a/src/mesa/main/occlude.c
+++ b/src/mesa/main/occlude.c
@@ -234,7 +234,7 @@ _mesa_EndQueryARB(GLenum target)
_mesa_HashLookup(ctx->Occlusion.QueryObjects,
ctx->Occlusion.CurrentQueryObject);
if (!q || !q->Active) {
- _mesa_problem(ctx, "bad query object in glEndQueryARB");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "glEndQuery with glBeginQuery");
return;
}