diff options
author | José Fonseca <[email protected]> | 2009-06-15 19:20:05 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-15 19:20:05 +0100 |
commit | 053d8eb8914cae274ccd19abb0a492e7ca220660 (patch) | |
tree | 478a80561da595e022ef0e6716fecd2c4f7fdafe /src/mesa/main/texgetimage.c | |
parent | 6214c7262fe2d31553a4974022e08a7715693014 (diff) |
mesa: Use appropriate float/integer types.
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r-- | src/mesa/main/texgetimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 58421c85283..02409d80098 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -77,7 +77,7 @@ linear_to_nonlinear(GLfloat cl) cs = 12.92f * cl; } else { - cs = 1.055 * _mesa_pow(cl, 0.41666) - 0.055; + cs = (GLfloat)(1.055 * _mesa_pow(cl, 0.41666) - 0.055); } return cs; } |