From b2136cab0b5ffd9166bd80af51dcbd0204217ac1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 29 Apr 2013 12:07:27 +0000 Subject: don't use GPU_extensions for BLF, its not initialized when using the blender-playanim and not really needed. this reverts part of 55995 --- source/blender/blenfont/intern/blf_glyph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/blenfont/intern/blf_glyph.c') diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 142acf755fc..a6b04b24399 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -55,7 +55,6 @@ #include "blf_internal_types.h" #include "blf_internal.h" -#include "GPU_extensions.h" GlyphCacheBLF *blf_glyph_cache_find(FontBLF *font, int size, int dpi) { @@ -382,7 +381,7 @@ int blf_glyph_render(FontBLF *font, GlyphBLF *g, float x, float y) GlyphCacheBLF *gc = font->glyph_cache; if (font->max_tex_size == -1) - font->max_tex_size = GPU_max_texture_size(); + glGetIntegerv(GL_MAX_TEXTURE_SIZE, (GLint *)&font->max_tex_size); if (gc->cur_tex == -1) { blf_glyph_cache_texture(font, gc); -- cgit v1.2.3