diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 09:40:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 09:40:35 +0400 |
commit | 98c574e41a8c2cd9ecb0d25afef8578c3e79289b (patch) | |
tree | 3b4c100e8bc38ac9ecddcc86e0572d8af1fec816 /source/blender/blenfont/intern/blf_glyph.c | |
parent | a62163ada389a18d11f0c085654916e2ef069a46 (diff) |
use 'greater/less then or equal to' operators rather then adding 1.
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 55424145b43..37e874fa396 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -152,7 +152,7 @@ void blf_glyph_cache_free(GlyphCacheBLF *gc) } } - if (gc->cur_tex + 1 > 0) + if (gc->cur_tex > -1) glDeleteTextures(gc->cur_tex + 1, gc->textures); MEM_freeN((void *)gc->textures); MEM_freeN(gc); |