1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[d3d9] Remove needless locks in SetTexture and SetSamplerState

This commit is contained in:
Joshua Ashton 2021-08-16 19:09:16 +01:00
parent 789e19d2ac
commit a346949304
No known key found for this signature in database
GPG Key ID: C85A08669126BE8D

View File

@ -2207,8 +2207,6 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::SetTexture(DWORD Stage, IDirect3DBaseTexture9* pTexture) {
D3D9DeviceLock lock = LockDevice();
if (unlikely(InvalidSampler(Stage)))
return D3D_OK;
@ -2274,7 +2272,6 @@ namespace dxvk {
DWORD Sampler,
D3DSAMPLERSTATETYPE Type,
DWORD Value) {
D3D9DeviceLock lock = LockDevice();
if (unlikely(InvalidSampler(Sampler)))
return D3D_OK;