diff options
author | Matt Turner <[email protected]> | 2015-07-12 23:15:01 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-07-29 09:34:52 -0700 |
commit | c92b2a1d7b286de8641512970a87c94809fbbc3f (patch) | |
tree | dfba41a970e59d8ae177856ee99519b7405128ce /src/mesa/tnl/t_vertex_generic.c | |
parent | 2b47ef715ad33f6c4a4881b10240d792ba9e60b2 (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_vertex_generic.c')
-rw-r--r-- | src/mesa/tnl/t_vertex_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c index 2a25a96928f..6c40c868363 100644 --- a/src/mesa/tnl/t_vertex_generic.c +++ b/src/mesa/tnl/t_vertex_generic.c @@ -1026,7 +1026,7 @@ void _tnl_generic_interp( struct gl_context *ctx, if (tnl->NeedNdcCoords) { const GLfloat *dstclip = VB->ClipPtr->data[edst]; - if (dstclip[3] != 0.0) { + if (dstclip[3] != 0.0f) { const GLfloat w = 1.0f / dstclip[3]; GLfloat pos[4]; |