diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-11-21 13:56:00 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2014-01-31 12:37:11 -0800 |
commit | ed437df208df7c7b314d3c19adcc498e570fd939 (patch) | |
tree | 603978adc21c7f9f8ac2e351ca9d8128435a64be /src | |
parent | f7848574b31c6a590f9dec6a1e704b7f99c2d90a (diff) |
mesa: Use IROUND instead of roundf.
roundf is not available on MSVC.
(cherry picked from commit bba8f10598866776ae198b363b3752c2e3bbb126)
Diffstat (limited to 'src')
-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) |