Browse Source

GPU: fix swapchain buffer size not set on Xbox

Daniel Ludwig 10 months ago
parent
commit
acb18e05b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/gpu/d3d12/SDL_gpu_d3d12.c

+ 2 - 0
src/gpu/d3d12/SDL_gpu_d3d12.c

@@ -6147,6 +6147,8 @@ static bool D3D12_INTERNAL_CreateSwapchain(
     windowData->swapchainComposition = swapchain_composition;
     windowData->swapchainColorSpace = DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709;
     windowData->frameCounter = 0;
+    windowData->width = width;
+    windowData->height = height;
 
     // Precache blit pipelines for the swapchain format
     for (Uint32 i = 0; i < 5; i += 1) {