mesa: Use IROUND instead of roundf.

roundf is not available on MSVC.

(cherry picked from commit bba8f10598)
This commit is contained in:
José Fonseca 2013-11-21 13:56:00 +00:00 committed by Carl Worth
parent e714e26420
commit a2224cf594

View file

@ -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)