mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
mesa: Use IROUND instead of roundf.
roundf is not available on MSVC.
(cherry picked from commit bba8f10598)
This commit is contained in:
parent
e714e26420
commit
a2224cf594
1 changed files with 1 additions and 1 deletions
|
|
@ -1680,7 +1680,7 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
|
||||||
/* GL spec 'Data Conversions' section specifies that floating-point
|
/* GL spec 'Data Conversions' section specifies that floating-point
|
||||||
* value in integer Get function is rounded to nearest integer
|
* value in integer Get function is rounded to nearest integer
|
||||||
*/
|
*/
|
||||||
*params = (GLint) roundf(obj->Sampler.LodBias);
|
*params = IROUND(obj->Sampler.LodBias);
|
||||||
break;
|
break;
|
||||||
case GL_TEXTURE_CROP_RECT_OES:
|
case GL_TEXTURE_CROP_RECT_OES:
|
||||||
if (ctx->API != API_OPENGLES || !ctx->Extensions.OES_draw_texture)
|
if (ctx->API != API_OPENGLES || !ctx->Extensions.OES_draw_texture)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue