SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size
This commit is contained in:
1 parent
b84d101337
commit
0e2ffdeb1d
1 file changed
+5
@@ -1313,6 +1313,11 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
|
||||
|
||||
texture = SDL_CreateTexture(renderer, sw_texture_format, SDL_TEXTUREACCESS_STREAMING, width, height);
|
||||
}
|
||||
|
||||
if (graphics_started)
|
||||
{
|
||||
I_UpdateNoVsync();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user