Kaynağa Gözat

Initialise m_transforms in ShellRenderInterfaceOpenGL constructor

viciious 6 yıl önce
ebeveyn
işleme
226d59c7a2

+ 2 - 4
Samples/shell/src/ShellRenderInterfaceOpenGL.cpp

@@ -32,11 +32,9 @@
 
 #define GL_CLAMP_TO_EDGE 0x812F
 
-ShellRenderInterfaceOpenGL::ShellRenderInterfaceOpenGL()
+ShellRenderInterfaceOpenGL::ShellRenderInterfaceOpenGL() : m_width(0), m_height(0), m_transforms(0), m_rmlui_context(NULL)
 {
-	m_rmlui_context = NULL;
-	m_width = 0;
-	m_height = 0;
+
 }
 
 // Called by RmlUi when it wants to render geometry that it does not wish to optimise.