From deec4ce0bc77519f68392bc5b29ef211a31f1588 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 4 Feb 2012 06:55:29 +0000 Subject: Code Cleanup: avoid double promotion. --- source/blender/blenfont/intern/blf_glyph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenfont/intern') diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 0e7cbb8cf1c..ab7ef8072a9 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -305,7 +305,7 @@ static void blf_texture_draw(float uv[2][2], float dx, float y1, float dx1, floa /* When a string is being rendered as individual glyphs (as in the game * engine), the leading edge needs to be raised a fraction to prevent * z-fighting for kerned characters. - z0r */ - float twist = (dx1 - dx) * 0.0002; + const float twist = (dx1 - dx) * 0.0002f; glBegin(GL_QUADS); glTexCoord2f(uv[0][0], uv[0][1]); -- cgit v1.2.3