Mesa (master): mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.

Eric Anholt anholt at kemper.freedesktop.org
Sat Sep 25 01:52:23 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Sep 24 18:40:24 2010 -0700

mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.

Fixes ARB_depth_texture/fbo-generatemipmap-formats.

---

 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 678d17a..f15c3b6 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -415,7 +415,7 @@ do_row(GLenum datatype, GLuint comps, GLint srcWidth,
       GLuint i, j, k;
       const GLuint *rowA = (const GLuint *) srcRowA;
       const GLuint *rowB = (const GLuint *) srcRowB;
-      GLfloat *dst = (GLfloat *) dstRow;
+      GLuint *dst = (GLfloat *) dstRow;
       for (i = j = 0, k = k0; i < (GLuint) dstWidth;
            i++, j += colStride, k += colStride) {
          dst[i] = (GLfloat)(rowA[j] / 4 + rowA[k] / 4 + rowB[j] / 4 + rowB[k] / 4);




More information about the mesa-commit mailing list