]> git.tdb.fi Git - libs/gl.git/blobdiff - source/text.cpp
Remove support for legacy OpenGL features
[libs/gl.git] / source / text.cpp
index dfb88e3fcc1e8553721eeaf100735cf616fe4f6f..b408bbe1780040cef29e600d2dab1b504b2d41b8 100644 (file)
@@ -36,7 +36,7 @@ void Text::set_text(const string &text, StringCodec::Decoder &dec)
        clear();
        width = font.get_string_width(text, dec);
        MeshBuilder bld(mesh);
-       bld.matrix() *= Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f));
+       bld.transform(Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f)));
        font.build_string(text, dec, bld);
 }