don't re-track transfer buffers on same command buffer
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
1dcf29eed4
commit
d3d5a5a525
|
@ -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*,
|
||||||
|
|
Loading…
Reference in New Issue