diff options
author | José Fonseca <[email protected]> | 2009-06-15 19:19:29 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-15 19:19:29 +0100 |
commit | 6214c7262fe2d31553a4974022e08a7715693014 (patch) | |
tree | e328cf205f27622ba821322a6e9217846b48479b /src/mesa/main/texgetimage.c | |
parent | 37f2117cd132527ebf89f9294b2f35db87326460 (diff) |
mesa: Use type modifier for float constants.
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r-- | src/mesa/main/texgetimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 70a25080cb0..58421c85283 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -73,8 +73,8 @@ linear_to_nonlinear(GLfloat cl) { /* can't have values outside [0, 1] */ GLfloat cs; - if (cl < 0.0031308) { - cs = 12.92 * cl; + if (cl < 0.0031308f) { + cs = 12.92f * cl; } else { cs = 1.055 * _mesa_pow(cl, 0.41666) - 0.055; |