From 326ce9bb8d02dd2d3bbf653643a27fdbbfa90d88 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Thu, 16 Jan 2025 12:19:59 -0500
Subject: [PATCH] gpu: D3D12 buildfix for Xbox
---
src/gpu/d3d12/SDL_gpu_d3d12.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c
index 1ea3734555497..c142bae4486f2 100644
--- a/src/gpu/d3d12/SDL_gpu_d3d12.c
+++ b/src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -6403,7 +6403,7 @@ static bool D3D12_INTERNAL_CreateSwapchain(
createInfo.num_levels = 1;
for (Uint32 i = 0; i < windowData->swapchainTextureCount; i += 1) {
- texture = D3D12_INTERNAL_CreateTexture(renderer, &createInfo, true);
+ texture = D3D12_INTERNAL_CreateTexture(renderer, &createInfo, true, "Swapchain");
texture->container = &windowData->textureContainers[i];
windowData->textureContainers[i].activeTexture = texture;
windowData->textureContainers[i].canBeCycled = false;