Use updateWindow in fake headset getDisplayDimensions;

This commit is contained in:
bjorn 2018-08-20 15:09:08 -07:00
parent 5a55e56d9c
commit c3b79b7274
1 changed files with 2 additions and 1 deletions

View File

@ -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;