mesa: use float to silence MSVC warning in _mesa_GetMultisamplefv()
authorBrian Paul <brianp@vmware.com>
Thu, 3 Jul 2014 18:00:36 +0000 (12:00 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 9 Jul 2014 12:43:25 +0000 (06:43 -0600)
src/mesa/main/multisample.c

index 599cdee74075431071821b2a6ca50f6a6e8d89cf..1f3fa0c1562af8f1dcb190439c9fab75102dbe83 100644 (file)
@@ -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;
    }