mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 22:40:24 +01:00
fix test for valid texunit in _mesa_ClientActiveTextureARB
This commit is contained in:
parent
111281f1fc
commit
3b6f62fc73
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue