From bba8f10598866776ae198b363b3752c2e3bbb126 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 21 Nov 2013 13:56:00 +0000 Subject: [PATCH] mesa: Use IROUND instead of roundf. roundf is not available on MSVC. --- src/mesa/main/texparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2