ui: Use SDL_GL_GetDrawableSize when rendering framebuffer

This commit is contained in:
Matt Borgerson 2022-05-09 11:29:16 -07:00 committed by mborgerson
parent 722579bf01
commit 6f3470acc8
1 changed files with 3 additions and 1 deletions

View File

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