From c99e2dd1d38db25d393a33870778a8eeb1a23020 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 28 Nov 2003 18:18:50 +0000 Subject: fix an error test --- src/mesa/main/occlude.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/occlude.c b/src/mesa/main/occlude.c index 1285874ef6f..73a29cc9392 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; } -- cgit v1.2.3