From df9c9ad706636f9e9a2bf14caebe09fba2ac79db Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 2 Jan 2016 14:14:59 -0500 Subject: [PATCH] GLInterfaceBase: In-class initialize protected members Gives the class a well-defined initial state --- Source/Core/Common/GL/GLInterfaceBase.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/GL/GLInterfaceBase.h b/Source/Core/Common/GL/GLInterfaceBase.h index 8fed61f0d4..5598f360b7 100644 --- a/Source/Core/Common/GL/GLInterfaceBase.h +++ b/Source/Core/Common/GL/GLInterfaceBase.h @@ -20,10 +20,10 @@ class cInterfaceBase { protected: // Window dimensions. - u32 s_backbuffer_width; - u32 s_backbuffer_height; + u32 s_backbuffer_width = 0; + u32 s_backbuffer_height = 0; - u32 s_opengl_mode; + u32 s_opengl_mode = GLInterfaceMode::MODE_DETECT; public: virtual ~cInterfaceBase() {} virtual void Swap() {}