]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Rewrite Bind as two different classes
[libs/gl.git] / source / font.cpp
index 1639f4a3726bbe853a8b324c65c3d3296f82626b..1005609eb16a8ed1a08377c276a7c152c61d22a0 100644 (file)
@@ -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);