[d3d9] Fix recording MultiplyTransform

This commit is contained in:
Joshua Ashton 2022-08-08 03:53:25 +01:00
parent 43df6cfa45
commit 4f0c217633
1 changed files with 3 additions and 3 deletions

View File

@ -1606,10 +1606,10 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::MultiplyTransform(D3DTRANSFORMSTATETYPE TransformState, const D3DMATRIX* pMatrix) {
D3D9DeviceLock lock = LockDevice();
if (unlikely(ShouldRecord()))
return m_recorder->MultiplyStateTransform(TransformState, pMatrix);
const uint32_t idx = GetTransformIndex(TransformState);
uint32_t idx = GetTransformIndex(TransformState);
if (unlikely(ShouldRecord()))
return m_recorder->MultiplyStateTransform(idx, pMatrix);
m_state.transforms[idx] = m_state.transforms[idx] * ConvertMatrix(pMatrix);