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

[d3d9] Fix recording MultiplyTransform

This commit is contained in:
Joshua Ashton 2022-08-08 03:53:25 +01:00
parent 43df6cfa45
commit 4f0c217633

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