X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ffont.cpp;fp=source%2Ffont.cpp;h=1005609eb16a8ed1a08377c276a7c152c61d22a0;hp=1639f4a3726bbe853a8b324c65c3d3296f82626b;hb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;hpb=a443cba337d8d69e23e64e19334d222e750c28b1 diff --git a/source/font.cpp b/source/font.cpp index 1639f4a3..1005609e 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -64,7 +64,7 @@ float Font::get_string_width(const string &str, StringCodec::Decoder &dec) const void Font::draw_string(const string &str, StringCodec::Decoder &dec, const Color &color) const { - Bind bind_tex(get_texture(), true); + BindRestore bind_tex(get_texture()); Immediate imm((TEXCOORD2, COLOR4_UBYTE, VERTEX2)); imm.color(color); build_string(str, dec, imm);