[PATCH 2/6] d3d9: Stop setting the device state in d3d9_device_SetTexture().

Zebediah Figura z.figura12 at gmail.com
Tue Feb 11 19:19:14 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/d3d9/device.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 3d2dd38d9c..6df43ccb66 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2567,9 +2567,6 @@ static HRESULT WINAPI d3d9_device_SetTexture(IDirect3DDevice9Ex *iface, DWORD st
         unsigned int i = stage < 16 || (stage >= D3DVERTEXTEXTURESAMPLER0 && stage <= D3DVERTEXTEXTURESAMPLER3)
                 ? stage < 16 ? stage : stage - D3DVERTEXTEXTURESAMPLER0 + 16 : ~0u;
 
-        wined3d_device_set_texture(device->wined3d_device, stage,
-                texture_impl ? texture_impl->wined3d_texture : NULL);
-
         if (i < D3D9_MAX_TEXTURE_UNITS)
         {
             if (texture_impl && texture_impl->usage & D3DUSAGE_AUTOGENMIPMAP)
-- 
2.25.0




More information about the wine-devel mailing list