summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-05-17 21:33:14 +0000
committerBrian Paul <[email protected]>2001-05-17 21:33:14 +0000
commit569b5f32b97164b733d47db6c1d4722076b02ea7 (patch)
tree4b819e0491d24165e3e398073a1d07a5b7b45881 /src/mesa
parent758a21f1043b52a8a2fa2397d3c963c0c40c268a (diff)
fixed two GL error calls
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 1dd084a5070..321628e99ca 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.48 2001/04/25 15:41:22 brianp Exp $ */
+/* $Id: texstate.c,v 1.49 2001/05/17 21:33:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2010,7 +2010,7 @@ _mesa_ActiveTextureARB( GLenum target )
_mesa_lookup_enum_by_nr(target));
if (texUnit > ctx->Const.MaxTextureUnits) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "glActiveTextureARB(target)");
+ _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTextureARB(target)");
return;
}
@@ -2032,7 +2032,7 @@ _mesa_ClientActiveTextureARB( GLenum target )
ASSERT_OUTSIDE_BEGIN_END(ctx);
if (texUnit > ctx->Const.MaxTextureUnits) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "glActiveTextureARB(target)");
+ _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTextureARB(target)");
return;
}