GLInterfaceBase: In-class initialize protected members
Gives the class a well-defined initial state
This commit is contained in:
parent
11a7defdba
commit
df9c9ad706
|
@ -20,10 +20,10 @@ class cInterfaceBase
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Window dimensions.
|
// Window dimensions.
|
||||||
u32 s_backbuffer_width;
|
u32 s_backbuffer_width = 0;
|
||||||
u32 s_backbuffer_height;
|
u32 s_backbuffer_height = 0;
|
||||||
|
|
||||||
u32 s_opengl_mode;
|
u32 s_opengl_mode = GLInterfaceMode::MODE_DETECT;
|
||||||
public:
|
public:
|
||||||
virtual ~cInterfaceBase() {}
|
virtual ~cInterfaceBase() {}
|
||||||
virtual void Swap() {}
|
virtual void Swap() {}
|
||||||
|
|
Loading…
Reference in New Issue