summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_draw.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-07-12 23:15:01 -0700
committerMatt Turner <[email protected]>2015-07-29 09:34:52 -0700
commitc92b2a1d7b286de8641512970a87c94809fbbc3f (patch)
treedfba41a970e59d8ae177856ee99519b7405128ce /src/mesa/tnl/t_draw.c
parent2b47ef715ad33f6c4a4881b10240d792ba9e60b2 (diff)
tnl: Avoid double promotion.
There are a couple of unrelated changes in t_vb_lighttmp.h that I hope you'll excuse -- there's a block of code that's duplicated modulo a few trivial differences that I took the liberty of fixing.
Diffstat (limited to 'src/mesa/tnl/t_draw.c')
-rw-r--r--src/mesa/tnl/t_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index d5dcb5e8a7d..632acb55f8b 100644
--- a/src/mesa/tnl/t_draw.c
+++ b/src/mesa/tnl/t_draw.c
@@ -257,7 +257,7 @@ static GLboolean *_tnl_import_edgeflag( struct gl_context *ctx,
GLuint i;
for (i = 0; i < count; i++) {
- *bptr++ = ((GLfloat *)ptr)[0] == 1.0;
+ *bptr++ = ((GLfloat *)ptr)[0] == 1.0F;
ptr += stride;
}