mirror of https://github.com/xemu-project/xemu.git
ui: Use SDL_GL_GetDrawableSize when rendering framebuffer
This commit is contained in:
parent
722579bf01
commit
6f3470acc8
|
@ -197,7 +197,9 @@ void xemu_hud_render(void)
|
|||
}
|
||||
|
||||
if (!first_boot_window.is_open) {
|
||||
RenderFramebuffer(g_tex, io.DisplaySize.x, io.DisplaySize.y, g_flip_req);
|
||||
int ww, wh;
|
||||
SDL_GL_GetDrawableSize(g_sdl_window, &ww, &wh);
|
||||
RenderFramebuffer(g_tex, ww, wh, g_flip_req);
|
||||
}
|
||||
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
|
|
Loading…
Reference in New Issue