Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-11-11 07:38:37 +0300
committerMatt Ebb <matt@mke3.net>2009-11-11 07:38:37 +0300
commit792c4d602db232f2c0027f4e7d2d15ef4370b5f7 (patch)
treecf513a527e4402747785cbb57c52bd2c5c0d7669 /source/blender/blenfont
parente776ecfddec846b50b6bbd86f2ea56d159b6f237 (diff)
Fixes for martin's background mode commit - now works fine here on OS X
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/blf_glyph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c
index 7d1e43a38df..1174197dce7 100644
--- a/source/blender/blenfont/intern/blf_glyph.c
+++ b/source/blender/blenfont/intern/blf_glyph.c
@@ -131,7 +131,8 @@ void blf_glyph_cache_free(GlyphCacheBLF *gc)
}
}
- glDeleteTextures(gc->cur_tex+1, gc->textures);
+ if (gc->cur_tex+1 > 0)
+ glDeleteTextures(gc->cur_tex+1, gc->textures);
free((void *)gc->textures);
MEM_freeN(gc);
}