diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index e8719d63..3291f7e8 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5143,7 +5143,7 @@ namespace dxvk { void D3D9DeviceEx::UploadConstants() { if constexpr (ShaderStage == DxsoProgramTypes::VertexShader) { if (CanSWVP()) - return UploadSoftwareConstantSet(m_state.vsConsts, m_vsLayout); + return UploadSoftwareConstantSet(m_state.vsConsts.get(), m_vsLayout); else return UploadConstantSet(m_state.vsConsts.get(), m_vsLayout, m_state.vertexShader); } else {