summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-05-09 14:36:58 +0000
committerBrian Paul <[email protected]>2006-05-09 14:36:58 +0000
commit791e7b385adbe865d0fa7b0aff3672095fdc0c7b (patch)
tree7ad47d4378d094eb8245921d1881623bf9ce06d2
parent008ed1df83735c72c2731c509a3665938d3c7209 (diff)
When error-checking 'unit' against num_texture_units, need to use >=, not >.
See bug 6863.
-rw-r--r--src/glx/x11/indirect_vertex_array.c2
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;
}