summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-12 21:43:39 -0600
committerBrian <[email protected]>2007-07-12 21:43:39 -0600
commit4595389c4c6064f87618ac67cd22dc94d523bb2a (patch)
tree86030838b0ab84364214571230ce8c1ddcd412f3 /src
parente8ccc7cc492e612153038053ed15cda5087b56c5 (diff)
fix width/depth mix-up (bug 11577)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/teximage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index d1b2c5c6399..532b02d2910 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1386,7 +1386,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)" );