summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/samplerobj.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-07-12 23:15:42 -0700
committerMatt Turner <[email protected]>2015-07-29 09:34:52 -0700
commita562313f378a056c8d886e418b518063ab077c39 (patch)
tree1d89ad9d8cd183bbcb560262105625b771799ecf /src/mesa/main/samplerobj.c
parent7adc9fa1f1d12683c5855bf5854dec814629093d (diff)
mesa: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/main/samplerobj.c')
-rw-r--r--src/mesa/main/samplerobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c
index d023fefabff..32180fb1ba2 100644
--- a/src/mesa/main/samplerobj.c
+++ b/src/mesa/main/samplerobj.c
@@ -689,7 +689,7 @@ set_sampler_max_anisotropy(struct gl_context *ctx,
if (samp->MaxAnisotropy == param)
return GL_FALSE;
- if (param < 1.0)
+ if (param < 1.0F)
return INVALID_VALUE;
flush(ctx);