From: Mikko Rasa Date: Sat, 27 Dec 2014 00:12:14 +0000 (+0200) Subject: Object's lod array must be initialized in all cases X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=75fa19f4de54fc2791ba95ef6552d8c8b00f2d53 Object's lod array must be initialized in all cases --- diff --git a/source/object.cpp b/source/object.cpp index 28389450..f043f614 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -21,7 +21,8 @@ Object::Object(): lods(1) { } -Object::Object(const Mesh *m, const Technique *t) +Object::Object(const Mesh *m, const Technique *t): + lods(1) { set_mesh(m); set_technique(t);