projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b917691
)
mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.
author
Eric Anholt
<eric@anholt.net>
Sat, 25 Sep 2010 01:40:24 +0000
(18:40 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 25 Sep 2010 01:40:24 +0000
(18:40 -0700)
Fixes ARB_depth_texture/fbo-generatemipmap-formats.
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index 678d17a2a3654b84ecec4c6b53a6b0c060546ebb..f15c3b665be775c31a4e539641f6370058ef23ce 100644
(file)
--- 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;
- GL
floa
t *dst = (GLfloat *) dstRow;
+ GL
uin
t *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);