diff options
author | José Fonseca <[email protected]> | 2013-11-21 13:56:00 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-11-21 13:56:00 +0000 |
commit | bba8f10598866776ae198b363b3752c2e3bbb126 (patch) | |
tree | d6908a65a3c4d8e7138548d113e5dfedbb42807f /src/mesa/main/texparam.c | |
parent | 7e61b44dcd6175579f60d8ff2f703a6c83e33d27 (diff) |
mesa: Use IROUND instead of roundf.
roundf is not available on MSVC.
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index f77e7f68ad6..7092c630b86 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1704,7 +1704,7 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params ) /* GL spec 'Data Conversions' section specifies that floating-point * value in integer Get function is rounded to nearest integer */ - *params = (GLint) roundf(obj->Sampler.LodBias); + *params = IROUND(obj->Sampler.LodBias); break; case GL_TEXTURE_CROP_RECT_OES: if (ctx->API != API_OPENGLES || !ctx->Extensions.OES_draw_texture) |