Mesa (7.9): mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2
Marek Olšák
mareko at kemper.freedesktop.org
Wed Feb 16 19:55:19 UTC 2011
Module: Mesa
Branch: 7.9
Commit: 231e72cdbdc6e876501e56c542f14a09994a5b30
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=231e72cdbdc6e876501e56c542f14a09994a5b30
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
(cherry picked from commit d5a1325f81a7f74643b88fe523551942ae5a2f63)
---
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 71aa8c2..333b1e1 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