mirror of https://github.com/bjornbytes/lovr.git
Use updateWindow in fake headset getDisplayDimensions;
This commit is contained in:
parent
5a55e56d9c
commit
c3b79b7274
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue