fix width/depth mix-up (bug 11577)

This commit is contained in:
Brian 2007-07-12 21:43:39 -06:00
parent e8ccc7cc49
commit 4595389c4c

View file

@ -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)" );