Skip to content

Commit

Permalink
d3d11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Jun 18, 2024
1 parent fc788b6 commit 2d02455
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gpu/d3d11/SDL_gpu_d3d11.c
Original file line number Diff line number Diff line change
Expand Up @@ -2660,8 +2660,6 @@ static void D3D11_MapTransferBuffer(
D3D11Renderer *renderer = (D3D11Renderer *)driverData;
D3D11TransferBufferContainer *container = (D3D11TransferBufferContainer *)transferBuffer;
D3D11TransferBuffer *buffer = container->activeBuffer;
D3D11_MAPPED_SUBRESOURCE mappedSubresource;
HRESULT res;

/* Rotate the transfer buffer if necessary */
if (
Expand All @@ -2681,8 +2679,8 @@ static void D3D11_UnmapTransferBuffer(
SDL_GpuTransferBuffer *transferBuffer)
{
/* no-op */
(void*)driverData;
(void*)transferBuffer;
(void)driverData;
(void)transferBuffer;
}

static void D3D11_SetTransferData(
Expand All @@ -2694,7 +2692,6 @@ static void D3D11_SetTransferData(
{
D3D11TransferBufferContainer *container = (D3D11TransferBufferContainer *)transferBuffer;
void *dataPtr;
(void*)driverData;

D3D11_MapTransferBuffer(driverData, transferBuffer, cycle, &dataPtr);

Expand Down

0 comments on commit 2d02455

Please sign in to comment.