mirror of
https://github.com/mborgerson/xemu.git
synced 2026-02-04 19:35:40 +00:00
ui: Use SDL_GL_GetDrawableSize when rendering framebuffer
This commit is contained in:
committed by
mborgerson
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();
|
||||
|
||||
Reference in New Issue
Block a user