From: Brian Paul Date: Thu, 3 Jul 2014 18:00:36 +0000 (-0600) Subject: mesa: use float to silence MSVC warning in _mesa_GetMultisamplefv() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91affc8b329c70d9213111f42d78a148491f4720;p=mesa.git mesa: use float to silence MSVC warning in _mesa_GetMultisamplefv() --- diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 599cdee7407..1f3fa0c1562 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -89,7 +89,7 @@ _mesa_GetMultisamplefv(GLenum pname, GLuint index, GLfloat * val) /* winsys FBOs are upside down */ if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) - val[1] = 1 - val[1]; + val[1] = 1.0f - val[1]; return; }