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

Brian Paul brianp at kemper.freedesktop.org
Fri May 27 01:26:20 UTC 2011


Module: Mesa
Branch: master
Commit: 4609e80288bacf19af99b0ed7656eef9bb280912
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4609e80288bacf19af99b0ed7656eef9bb280912

Author: Brian Paul <brianp at vmware.com>
Date:   Thu May 26 19:25:44 2011 -0600

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

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=37648

---

 src/mesa/main/teximage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 8fb54c6..4ea9a48 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:




More information about the mesa-commit mailing list