]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Remove non-OO access to blending
[libs/gl.git] / source / font.cpp
index 44e3d241154b0e4acd8ccdd8e747091ea776f9ef..bbbc40edb1062ceb1f69b0d8e1898ff40fff2a7e 100644 (file)
@@ -6,6 +6,7 @@ Distributed under the LGPL
 */
 
 #include <msp/datafile/collection.h>
+#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;