mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
23fa0657a7
commit
f8787ca6b9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue