gsdx: Fix variable initialisation issue

Class member variables are initialised in order of declaration in the
class definition. Move native_buffer to the top of the class definition
to avoid initialising m_width and m_height to random values.
This commit is contained in:
Jonathan Li 2017-06-05 01:12:41 +01:00
parent 23fa0657a7
commit f8787ca6b9
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,7 @@
class GSRendererHW : public GSRenderer
{
private:
GSVector2i native_buffer = GSVector2i{1280, 1024};
int m_width;
int m_height;
int m_custom_width;
@ -155,7 +156,6 @@ protected:
bool m_channel_shuffle;
GSVector2i m_lod; // Min & Max level of detail
const GSVector2i native_buffer = GSVector2i(1280, 1024);
void CustomResolutionScaling();
public: