From 5f7f146ec25b3a6ed524a79608e09b37c3f5fa9c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 1 Feb 2006 16:53:13 +0000 Subject: replace > with >= in _mesa_ClientActiveTextureARB() --- src/mesa/main/texstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 8ac41a2772..3f612c059b 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -2729,7 +2729,7 @@ _mesa_ClientActiveTextureARB( GLenum target ) GLuint texUnit = target - GL_TEXTURE0; ASSERT_OUTSIDE_BEGIN_END(ctx); - if (texUnit > ctx->Const.MaxTextureUnits) { + if (texUnit >= ctx->Const.MaxTextureUnits) { _mesa_error(ctx, GL_INVALID_ENUM, "glClientActiveTexture(target)"); return; } -- cgit v1.2.3