File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
RenderSystems/GLSupport/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ namespace Ogre {
105
105
}
106
106
XRRFreeScreenConfigInfo (screenConfig);
107
107
}
108
- } else
108
+ }
109
+
110
+ if (mVideoModes .empty ()) // none of the above worked
109
111
{
110
112
mCurrentMode .width = DisplayWidth (mNativeDisplay , DefaultScreen (mNativeDisplay ));
111
113
mCurrentMode .height = DisplayHeight (mNativeDisplay , DefaultScreen (mNativeDisplay ));
Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ namespace Ogre
117
117
XRRFreeScreenConfigInfo (screenConfig);
118
118
}
119
119
}
120
- else
120
+
121
+ if (mVideoModes .empty ())
121
122
{
122
123
mCurrentMode .width = DisplayWidth (mXDisplay , DefaultScreen (mXDisplay ));
123
124
mCurrentMode .height = DisplayHeight (mXDisplay , DefaultScreen (mXDisplay ));
You can’t perform that action at this time.
0 commit comments