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:55:20 +02:00
1 parent b84d101337
commit 0e2ffdeb1d
1 file changed
+5
+5
View File
@@ -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();
}
}
//