Mesa (7.10): mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2

Marek Olšák mareko at kemper.freedesktop.org
Wed Feb 16 19:52:27 UTC 2011


Module: Mesa
Branch: 7.10
Commit: d5a1325f81a7f74643b88fe523551942ae5a2f63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5a1325f81a7f74643b88fe523551942ae5a2f63

Author: Marek Olšák <maraeo at gmail.com>
Date:   Wed Feb 16 20:37:28 2011 +0100

mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2

---

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

diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index ad63b17..29ba2ca 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1077,7 +1077,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
       }
    }
    else if ((datatype == GL_UNSIGNED_BYTE_3_3_2) && (comps == 3)) {
-      DECLARE_ROW_POINTERS0(GLushort);
+      DECLARE_ROW_POINTERS0(GLubyte);
 
       for (i = j = 0, k = k0; i < (GLuint) dstWidth;
            i++, j += colStride, k += colStride) {




More information about the mesa-commit mailing list