[d3d9] Fix stream count in Reset

This commit is contained in:
Robin Kertels 2024-03-10 16:36:02 +01:00
parent 0776d764a4
commit 8b8be7c2bf
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ namespace dxvk {
// Unbind all buffers that were still bound to the backend to avoid leaks.
EmitCs([](DxvkContext* ctx) {
ctx->bindIndexBuffer(DxvkBufferSlice(), VK_INDEX_TYPE_UINT32);
for (uint32_t i = 0; i < DxvkLimits::MaxNumVertexBindings; i++) {
for (uint32_t i = 0; i < caps::MaxStreams; i++) {
ctx->bindVertexBuffer(i, DxvkBufferSlice(), 0);
}
});