From c99e2dd1d38db25d393a33870778a8eeb1a23020 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 28 Nov 2003 18:18:50 +0000 Subject: [PATCH] fix an error test --- src/mesa/main/occlude.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2