projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
53e6eb8
)
mesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0
author
Dave Airlie
<airlied@redhat.com>
Sat, 25 Sep 2010 08:51:24 +0000
(18:51 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sat, 25 Sep 2010 08:51:24 +0000
(18:51 +1000)
1acadebd6270d3604b026842b8a21360968618a0
fixed the pointer but not the cast.
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index f15c3b665be775c31a4e539641f6370058ef23ce..3d1a4c49c4974366cdd6e20ac31960268b7a3fa4 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;
- GLuint *dst = (GL
floa
t *) dstRow;
+ GLuint *dst = (GL
uin
t *) 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);