summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}