From: Brian Paul Date: Fri, 27 May 2011 01:25:44 +0000 (-0600) Subject: mesa: s/height/depth/ in texsubimage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4609e80288bacf19af99b0ed7656eef9bb280912;p=mesa.git mesa: s/height/depth/ in texsubimage() Fixes http://bugs.freedesktop.org/show_bug.cgi?id=37648 --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 8fb54c693e0..4ea9a483c92 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2693,7 +2693,7 @@ texsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, format, type, texImage)) { /* 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. */ switch (dims) { case 3: