summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-07-15 11:15:27 +0200
committerKeith Whitwell <[email protected]>2008-09-21 22:13:57 -0700
commit9614eac85df028bbb77a5073f2f1839bdaa308a0 (patch)
tree689a3bf32bebec1ab408213e3b8021bef2b9c3d8 /src/mesa/main/texformat.c
parentce1685ce947545fac8c254cafdc0f133b6202ca9 (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 ae9ed0a84ba..d4ccdf9fa06 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;