diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-04 21:24:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-04 21:24:40 +0400 |
commit | 419016928216707f95fa7b94d233b0bb8707ff3c (patch) | |
tree | c2aa61ef650533cd9579103b8b427e8c2eb06d60 /source/blender/blenfont | |
parent | 0f565149864ac34d54c5a0e517a8db88cf67a6d6 (diff) |
code cleanup, also remove glError check in font drawing code since its now a debug option.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 2c582133b15..9c7623f3757 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -420,7 +420,6 @@ int blf_glyph_render(FontBLF *font, GlyphBLF *g, float x, float y) glBindTexture(GL_TEXTURE_2D, g->tex); glTexSubImage2D(GL_TEXTURE_2D, 0, g->xoff, g->yoff, g->width, g->height, GL_ALPHA, GL_UNSIGNED_BYTE, g->bitmap); - BLI_assert(glGetError() == GL_NO_ERROR); glPopClientAttrib(); g->uv[0][0] = ((float)g->xoff) / ((float)gc->p2_width); |