]> git.tdb.fi Git - libs/gl.git/commitdiff
Add a missing initializer
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 May 2018 22:06:44 +0000 (01:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 May 2018 22:07:15 +0000 (01:07 +0300)
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)