diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-05-31 18:14:09 +0900 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-09-23 17:20:38 -0700 |
commit | 452a592ca4b1bac78eee53fb9f2f1deac7832840 (patch) | |
tree | 64f12521f97de549005661c9e680769ff1e9ce84 /src/mesa/main/mipmap.c | |
parent | 9118b02fd0e4c5c472d7dbf211eec350a1d37ea4 (diff) |
mesa: Apply MSVC portability fixes from Alan Hourihane.
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | 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 ebc3c9ace4..13d90e78fe 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -292,7 +292,7 @@ do_row(GLenum datatype, GLuint comps, GLint srcWidth, GLfloat *dst = (GLfloat *) dstRow; for (i = j = 0, k = k0; i < (GLuint) dstWidth; i++, j += colStride, k += colStride) { - dst[i] = rowA[j] / 4 + rowA[k] / 4 + rowB[j] / 4 + rowB[k] / 4; + dst[i] = (GLfloat)(rowA[j] / 4 + rowA[k] / 4 + rowB[j] / 4 + rowB[k] / 4); } } |