Skip to content

Commit

Permalink
[D3D11] Also reset cbuffer pool when SetConstants() is used in CopyBu…
Browse files Browse the repository at this point in the history
…fferFromTexture/CopyTextureFromBuffer.
  • Loading branch information
LukasBanana committed Jul 16, 2024
1 parent fa6d3a0 commit 3c9ddb6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ void D3D11PrimaryCommandBuffer::CopyBufferFromTexture(
const D3D11_BOX srcBox{ 0, 0, 0, copySize, 1, 1 };
GetNative()->CopySubresourceRegion(dstBufferD3D.GetNative(), 0, dstOffsetU32, 0, 0, intermediateBuffer.Get(), 0, &srcBox);
}

GetStateManager().ResetCbufferPool();
}

void D3D11PrimaryCommandBuffer::FillBuffer(
Expand Down Expand Up @@ -658,6 +660,8 @@ void D3D11PrimaryCommandBuffer::CopyTextureFromBuffer(
);
}
}

GetStateManager().ResetCbufferPool();
}

void D3D11PrimaryCommandBuffer::CopyTextureFromFramebuffer(
Expand Down

0 comments on commit 3c9ddb6

Please sign in to comment.