summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-05-26 19:26:36 -0600
committerBrian Paul <brianp@vmware.com>2011-05-26 19:26:36 -0600
commiteaadbacb5c646b8f01ae63f0a1f9ec831058f363 (patch)
treee7a953c195214744a3eb2d205ed4712408a36e9c
parent9286d0ddd37e64c3e8c50bb7de1bd100969a5c98 (diff)
mesa: s/height/depth/ in texsubimage()7.10
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=37648 (cherry picked from commit 4609e80288bacf19af99b0ed7656eef9bb280912)
-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 c5ae63052a..e72bb495f7 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2616,7 +2616,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: