summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-11-21 13:56:00 +0000
committerCarl Worth <cworth@cworth.org>2014-01-31 12:39:34 -0800
commita2224cf59492c6bea2e376cd9142a3837fefcfcf (patch)
tree6ef6c15c78bbf4550ade91ef9fb50e63f6fcab0c
parente714e264202a2842ca361bd4671884cdec0e3cf4 (diff)
mesa: Use IROUND instead of roundf.9.2
roundf is not available on MSVC. (cherry picked from commit bba8f10598866776ae198b363b3752c2e3bbb126)
-rw-r--r--src/mesa/main/texparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index b437d88f450..70892b5fe8d 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -1680,7 +1680,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)