fix width/depth mix-up (bug 11577)
authorBrian <brian.paul@tungstengraphics.com>
Fri, 13 Jul 2007 03:32:35 +0000 (21:32 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 13 Jul 2007 03:33:05 +0000 (21:33 -0600)
src/mesa/main/teximage.c

index 1656b228b9b2a37ff9f55d61c16b0868e5d3aa85..3420d8e2bafd675a6dfa5c4dd679ddf135dd97dc 100644 (file)
@@ -1476,7 +1476,7 @@ texture_error_check( GLcontext *ctx, GLenum target,
       if (target == GL_PROXY_TEXTURE_1D || target == GL_TEXTURE_1D) {
          proxy_target = GL_PROXY_TEXTURE_1D;
          height = 1;
-         width = 1;
+         depth = 1;
       }
       else {
          _mesa_error( ctx, GL_INVALID_ENUM, "glTexImage1D(target)" );