diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-01 16:53:13 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-01 16:53:13 +0000 |
commit | 5f7f146ec25b3a6ed524a79608e09b37c3f5fa9c (patch) | |
tree | 556fe7b66fba26e188b297b9247d9f20e6d7aaac | |
parent | 416149507426d35999391b55fbeb8253758c7250 (diff) |
replace > with >= in _mesa_ClientActiveTextureARB()
-rw-r--r-- | src/mesa/main/texstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |