diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 5b862c05..21e81173 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -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); } });