Use updateWindow in fake headset getDisplayDimensions;
@@ -185,7 +185,8 @@ static void fakeSetMirrored(bool mirror) {
}
static void fakeGetDisplayDimensions(int* width, int* height) {
- state.window = state.window ? state.window : glfwGetCurrentContext();
+ updateWindow();
+
if (state.window) {
glfwGetFramebufferSize(state.window, width, height);
*width /= 2;
