1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 01:24:12 +01:00

[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

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);
}
});