]> git.tdb.fi Git - libs/gl.git/blobdiff - source/text.cpp
Fix a texture data indexing bug in AmbientOcclusion
[libs/gl.git] / source / text.cpp
index f791c3b269632e1ed2113554d8095f55182102c2..dfb88e3fcc1e8553721eeaf100735cf616fe4f6f 100644 (file)
@@ -11,7 +11,8 @@ Text::Text(const Font &f, const Technique *tech):
        font(f),
        mesh((TEXCOORD2, VERTEX2)),
        horz_align(0.0f),
-       vert_offset(0.0f)
+       vert_offset(0.0f),
+       width(0.0f)
 {
        object.set_mesh(&mesh);
        if(tech)