BGE: Making sure m_mirrorHalfWidth and m_mirrorHalfHeight are initialized in the...
authorMitchell Stokes <mogurijin@gmail.com>
Sat, 3 Aug 2013 05:01:32 +0000 (05:01 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sat, 3 Aug 2013 05:01:32 +0000 (05:01 +0000)
source/gameengine/VideoTexture/ImageRender.cpp

index f184ab9bd1d8b4a5a2fdff6d47b8ea6dbb66bb1b..d83cd2dc6fd0e266ae6028e886e074ec688242f3 100644 (file)
@@ -70,7 +70,9 @@ ImageRender::ImageRender (KX_Scene *scene, KX_Camera * camera) :
     m_owncamera(false),
     m_observer(NULL),
     m_mirror(NULL),
-    m_clip(100.f)
+    m_clip(100.f),
+    m_mirrorHalfWidth(0.f),
+    m_mirrorHalfHeight(0.f)
 {
        // initialize background color
        setBackground(0, 0, 255, 255);