SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size

This commit is contained in:
James R. authored and Alug committed 2025-10-24 01:54:07 +02:00
1 parent ffb0927626
commit caed90392a
1 file changed
+5
+5
View File
@@ -1354,6 +1354,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();
}
}
//