diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-14 05:07:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-14 05:07:33 +0400 |
commit | f2821e392b3670a094da187d3b16f74568e4a172 (patch) | |
tree | b217750c334444c7046060b1baaa3e6169ba5434 /source/blender/blenfont | |
parent | 28054d8e386dbaee80d439fdf9c7ba7eb6bfe39f (diff) |
hint checks to re-alloc as unlikely
also edit comments for knife tool
Diffstat (limited to 'source/blender/blenfont')
-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 bfb42f69077..a2462f3e302 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -153,7 +153,7 @@ static void blf_glyph_cache_texture(FontBLF *font, GlyphCacheBLF *gc) /* move the index. */ gc->cur_tex++; - if (gc->cur_tex >= gc->ntex) { + if (UNLIKELY(gc->cur_tex >= gc->ntex)) { gc->ntex *= 2; gc->textures = (GLuint *)MEM_reallocN((void *)gc->textures, sizeof(GLuint) * gc->ntex); } |