don't re-track transfer buffers on same command buffer
continuous-integration/drone/push Build is failing Details

d3d11
cosmonaut 2024-03-06 14:29:53 -08:00
parent 1dcf29eed4
commit d3d5a5a525
1 changed files with 8 additions and 0 deletions

View File

@ -1883,6 +1883,14 @@ static void D3D11_INTERNAL_TrackTransferBuffer(
D3D11CommandBuffer *commandBuffer, D3D11CommandBuffer *commandBuffer,
D3D11TransferBuffer *buffer D3D11TransferBuffer *buffer
) { ) {
for (uint32_t i = 0; i < commandBuffer->usedTransferBufferCount; i += 1)
{
if (commandBuffer->usedTransferBuffers[i] == buffer)
{
return;
}
}
EXPAND_ARRAY_IF_NEEDED( EXPAND_ARRAY_IF_NEEDED(
commandBuffer->usedTransferBuffers, commandBuffer->usedTransferBuffers,
D3D11TransferBuffer*, D3D11TransferBuffer*,