projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e61b44
)
mesa: Use IROUND instead of roundf.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Nov 2013 13:56:00 +0000
(13:56 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Nov 2013 13:56:00 +0000
(13:56 +0000)
roundf is not available on MSVC.
src/mesa/main/texparam.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texparam.c
b/src/mesa/main/texparam.c
index f77e7f68ad61d28ba3111b254381dbde9433ecfa..7092c630b86064c1f2506920eada2239769bd6c7 100644
(file)
--- 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)