X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffont.cpp;fp=source%2Ffont.cpp;h=bbbc40edb1062ceb1f69b0d8e1898ff40fff2a7e;hb=c473f9193d3e5088772b6e5ebf53b710e2976a92;hp=44e3d241154b0e4acd8ccdd8e747091ea776f9ef;hpb=020811d96d5c823686e5c2b0a392b95d1a321f05;p=libs%2Fgl.git diff --git a/source/font.cpp b/source/font.cpp index 44e3d241..bbbc40ed 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -6,6 +6,7 @@ Distributed under the LGPL */ #include +#include "bindable.h" #include "gl.h" #include "font.h" #include "immediate.h" @@ -84,7 +85,7 @@ void Font::draw_string(const string &str, Codecs::Decoder &dec, PrimitiveBuilder if(!tex) throw InvalidState("No texture"); - tex->bind(); + Bind bind_tex(tex, true); float x = 0; unsigned count = 0;