@@ -144,7 +144,7 @@ public static async Task<GameContext> Create(GameWindow window, Config config, G
144144 var startVM = Task . Run ( ( ) => LoadStartupScript ( profile , fontConfig , logger ) ) ;
145145
146146 SwapchainSource swapchainSource = await createSurface . Task ;
147- ( GraphicsDevice gd , Swapchain swapchain ) = InitGraphics ( window , config ) ;
147+ ( GraphicsDevice gd , Swapchain swapchain ) = InitGraphics ( window , config , profile ) ;
148148 ContentManager contentMgr = CreateContentManager ( gd , profile ) ;
149149 AudioContext audioContext = await initAudio ;
150150 ( NsScriptVM vm , GameProcess mainProcess ) = await startVM ;
@@ -229,7 +229,8 @@ private static AudioContext InitAudio(Config config)
229229
230230 private static ( GraphicsDevice device , Swapchain swapchain ) InitGraphics (
231231 GameWindow window ,
232- Config configuration )
232+ Config configuration ,
233+ GameProfile gameProfile )
233234 {
234235 var options = new GraphicsDeviceOptions ( false , null , configuration . EnableVSync ) ;
235236 options . PreferStandardClipSpaceYDirection = true ;
@@ -238,7 +239,7 @@ private static (GraphicsDevice device, Swapchain swapchain) InitGraphics(
238239#endif
239240 GraphicsBackend backend = configuration . PreferredGraphicsBackend
240241 ?? VeldridStartup . GetPlatformDefaultBackend ( ) ;
241- Size renderResolution = configuration . RenderResolution ;
242+ Size renderResolution = gameProfile . DesignResolution ;
242243 var swapchainDesc = new SwapchainDescription (
243244 window . SwapchainSource ,
244245 renderResolution . Width , renderResolution . Height ,
0 commit comments