GLInterfaceBase: In-class initialize protected members

Gives the class a well-defined initial state
This commit is contained in:
Lioncash 2016-01-02 14:14:59 -05:00
parent 11a7defdba
commit df9c9ad706
1 changed files with 3 additions and 3 deletions

View File

@ -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() {}