summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-07-03 12:00:36 -0600
committerBrian Paul <[email protected]>2014-07-09 06:43:25 -0600
commit91affc8b329c70d9213111f42d78a148491f4720 (patch)
tree78f3b4f2e6d5f5f2e467be74c97066ae2b2f39a9 /src/mesa/main
parent50bbe49c330095ba451d0f48c56759d148a609c2 (diff)
mesa: use float to silence MSVC warning in _mesa_GetMultisamplefv()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/multisample.c2
1 files changed, 1 insertions, 1 deletions
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;
}