X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffont.cpp;h=1005609eb16a8ed1a08377c276a7c152c61d22a0;hb=61ff840cd211f10d45dca8c4dad2cca5f68aaa42;hp=1639f4a3726bbe853a8b324c65c3d3296f82626b;hpb=ae9abd6be3e556d0a202cc5ab05668da715382c9;p=libs%2Fgl.git 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);