]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/text.cpp
Make VertexFormat capable of storing type information
[libs/gl.git] / source / render / text.cpp
index b43061c522a5addbbf2ff474742efd97fb78fbef..b3d85deb899a5f837d9e0d64d8720c89925b14bc 100644 (file)
@@ -102,7 +102,7 @@ void Text::set_alignment(float h, float v)
        unsigned n_vertices = mesh.get_n_vertices();
        for(unsigned i=0; i<n_vertices; ++i)
        {
-               float *pos = mesh.modify_vertex(i)+pos_offset;
+               float *pos = reinterpret_cast<float *>(mesh.modify_vertex(i)+pos_offset);
                pos[0] += horz_adjust;
                pos[1] += vert_adjust;
        }