diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/x11/indirect_vertex_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/indirect_vertex_array.c b/src/glx/x11/indirect_vertex_array.c index 2a8c68eec8c..24bca425a2e 100644 --- a/src/glx/x11/indirect_vertex_array.c +++ b/src/glx/x11/indirect_vertex_array.c @@ -1591,7 +1591,7 @@ void __indirect_glClientActiveTextureARB(GLenum texture) const GLint unit = (GLint) texture - GL_TEXTURE0; - if ( (unit < 0) || (unit > arrays->num_texture_units) ) { + if ( (unit < 0) || (unit >= arrays->num_texture_units) ) { __glXSetError(gc, GL_INVALID_ENUM); return; } |