diff options
author | Roland Scheidegger <[email protected]> | 2006-02-01 01:05:40 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-02-01 01:05:40 +0000 |
commit | 3b6f62fc736d8f337897e2cefbfa15d6d77586f3 (patch) | |
tree | 709d4587cddcb7e7cbd24b779cba2af52cd1eda5 /src/mesa/main | |
parent | 111281f1fc0b51a224755057e8a0791e395d184a (diff) |
fix test for valid texunit in _mesa_ClientActiveTextureARB
Diffstat (limited to 'src/mesa/main')
-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 608dbc1088a..46cebe91067 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -2692,7 +2692,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; } |