diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-04 10:55:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-04 10:55:29 +0400 |
commit | deec4ce0bc77519f68392bc5b29ef211a31f1588 (patch) | |
tree | 81865ab303df791e61d9b50e849c53791be0ce0a /source/blender/blenfont/intern/blf_glyph.c | |
parent | a05fdb837b89f2fba04587e99d0eecaa9cf174c3 (diff) |
Code Cleanup: avoid double promotion.
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |