mesa: s/height/depth/ in texsubimage()

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=37648
This commit is contained in:
Brian Paul
2011-05-26 19:25:44 -06:00
parent e401c1f57f
commit 4609e80288

View File

@@ -2693,7 +2693,7 @@ texsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level,
format, type, texImage)) { format, type, texImage)) {
/* error was recorded */ /* error was recorded */
} }
else if (width > 0 && height > 0 && height > 0) { else if (width > 0 && height > 0 && depth > 0) {
/* If we have a border, offset=-1 is legal. Bias by border width. */ /* If we have a border, offset=-1 is legal. Bias by border width. */
switch (dims) { switch (dims) {
case 3: case 3: