d3dx9: Fix ID3DXEffect::SetStateManager().
This commit is contained in:
parent
d59c3d45e3
commit
32bba812df
|
@ -2944,8 +2944,8 @@ static HRESULT WINAPI ID3DXEffectImpl_SetStateManager(ID3DXEffect *iface, LPD3DX
|
|||
|
||||
TRACE("iface %p, manager %p\n", This, manager);
|
||||
|
||||
if (This->manager) IUnknown_Release(This->manager);
|
||||
if (manager) IUnknown_AddRef(manager);
|
||||
if (This->manager) IUnknown_Release(This->manager);
|
||||
|
||||
This->manager = manager;
|
||||
|
||||
|
|
Loading…
Reference in New Issue