Mesa (master): mesa: Use IROUND instead of roundf.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Nov 21 14:00:14 UTC 2013
Module: Mesa
Branch: master
Commit: bba8f10598866776ae198b363b3752c2e3bbb126
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bba8f10598866776ae198b363b3752c2e3bbb126
Author: José Fonseca <jfonseca at vmware.com>
Date: Thu Nov 21 13:56:00 2013 +0000
mesa: Use IROUND instead of roundf.
roundf is not available on MSVC.
---
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 f77e7f6..7092c63 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)
More information about the mesa-commit
mailing list