mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Remove needless locks in SetTexture and SetSamplerState
This commit is contained in:
parent
789e19d2ac
commit
a346949304
@ -2207,8 +2207,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::SetTexture(DWORD Stage, IDirect3DBaseTexture9* pTexture) {
|
HRESULT STDMETHODCALLTYPE D3D9DeviceEx::SetTexture(DWORD Stage, IDirect3DBaseTexture9* pTexture) {
|
||||||
D3D9DeviceLock lock = LockDevice();
|
|
||||||
|
|
||||||
if (unlikely(InvalidSampler(Stage)))
|
if (unlikely(InvalidSampler(Stage)))
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
|
|
||||||
@ -2274,7 +2272,6 @@ namespace dxvk {
|
|||||||
DWORD Sampler,
|
DWORD Sampler,
|
||||||
D3DSAMPLERSTATETYPE Type,
|
D3DSAMPLERSTATETYPE Type,
|
||||||
DWORD Value) {
|
DWORD Value) {
|
||||||
D3D9DeviceLock lock = LockDevice();
|
|
||||||
if (unlikely(InvalidSampler(Sampler)))
|
if (unlikely(InvalidSampler(Sampler)))
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user