summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-07-15 11:15:27 +0200
committerMichal Krol <[email protected]>2008-07-15 11:48:55 +0200
commit090e212c0c5e54156c3c33f7eecdfe01398a7222 (patch)
treec22df6784c0952aaf9d1bf7cd02a99ca2bd03319 /src/mesa/main/texformat.c
parent3392bcaaa823bd791e8d7e4c5a7ce013831899bb (diff)
mesa: Silence compiler warnings on Windows.
Diffstat (limited to 'src/mesa/main/texformat.c')
-rw-r--r--src/mesa/main/texformat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index 11e7755960a..60f36c4a87f 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -55,10 +55,10 @@ nonlinear_to_linear(GLubyte cs8)
for (i = 0; i < 256; i++) {
const GLfloat cs = UBYTE_TO_FLOAT(i);
if (cs <= 0.04045) {
- table[i] = cs / 12.92;
+ table[i] = cs / 12.92f;
}
else {
- table[i] = _mesa_pow((cs + 0.055) / 1.055, 2.4);
+ table[i] = (GLfloat) _mesa_pow((cs + 0.055) / 1.055, 2.4);
}
}
tableReady = GL_TRUE;