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);