mirror of https://github.com/aap/librw.git
window size test
This commit is contained in:
parent
cc550ff69c
commit
8b2caf8f86
|
@ -1344,7 +1344,7 @@ beginUpdate(Camera *cam)
|
||||||
#ifdef LIBRW_SDL2
|
#ifdef LIBRW_SDL2
|
||||||
SDL_GetWindowSize(glGlobals.window, &w, &h);
|
SDL_GetWindowSize(glGlobals.window, &w, &h);
|
||||||
#else
|
#else
|
||||||
glfwGetWindowSize(glGlobals.window, &w, &h);
|
glfwGetFramebufferSize(glGlobals.window, &w, &h);
|
||||||
#endif
|
#endif
|
||||||
}else{
|
}else{
|
||||||
w = fb->width;
|
w = fb->width;
|
||||||
|
|
Loading…
Reference in New Issue