mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
Should fix behavior for tiled WMs.
This commit is contained in:
parent
9e24474047
commit
3f5b6a450e
7
gfx/gl.c
7
gfx/gl.c
@ -1109,6 +1109,13 @@ static void* gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||
}
|
||||
|
||||
SSNES_LOG("GL: Using resolution %ux%u\n", gl->win_width, gl->win_height);
|
||||
video_info = SDL_GetVideoInfo();
|
||||
if (gl->win_width != video_info->current_w || gl->win_height != video_info->current_h)
|
||||
{
|
||||
gl->win_width = video_info->current_w;
|
||||
gl->win_height = video_info->current_h;
|
||||
SSNES_WARN("GL: Did not get requested resolution, got %ux%u ...\n", gl->win_width, gl->win_height);
|
||||
}
|
||||
|
||||
if (!gl_shader_init())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user