BLF: Fix problem with bound texture.
authorClément Foucault <foucault.clem@gmail.com>
Sat, 7 Apr 2018 23:14:43 +0000 (01:14 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Sat, 7 Apr 2018 23:14:43 +0000 (01:14 +0200)
commit0b5ebb3265b155658d441135e152f32ba11c001d
treea518d91a7292b63aa0406577b98afcccdcf12cac
parent3725d82cee97b980e514aed1b226deb91aae9fe6
BLF: Fix problem with bound texture.

Previous code was assuming that the glyph texture would remain bound to
GL_TEXTURE0 until the cache would be drawn. This is not always the case,
so better save the texture and rebind it before drawing.
source/blender/blenfont/intern/blf_font.c
source/blender/blenfont/intern/blf_glyph.c
source/blender/blenfont/intern/blf_internal_types.h