fix an error test
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Nov 2003 18:18:50 +0000 (18:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Nov 2003 18:18:50 +0000 (18:18 +0000)
src/mesa/main/occlude.c

index 1285874ef6fd87bf4163c6915627eefa0e5680fd..73a29cc93921629429ffc5f269123ce1b2f9a46e 100644 (file)
@@ -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;
    }