X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffont.cpp;h=bbbc40edb1062ceb1f69b0d8e1898ff40fff2a7e;hb=bdd9a8e26efad3ba349e4ffd58171cfee3cacfb0;hp=44e3d241154b0e4acd8ccdd8e747091ea776f9ef;hpb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;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;