Browse Source

gpu: Fix Z offset for D3D12 realigned 3D texture uploads

Caleb Cornett 5 months ago
parent
commit
b0d2a4f355
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gpu/d3d12/SDL_gpu_d3d12.c

+ 1 - 1
src/gpu/d3d12/SDL_gpu_d3d12.c

@@ -5815,7 +5815,7 @@ static void D3D12_UploadToTexture(
                 &destinationLocation,
                 destination->x,
                 destination->y,
-                sliceIndex,
+                destination->z + sliceIndex,
                 &sourceLocation,
                 NULL);
         }