Zebediah Figura : d3d9: Stop setting the device state in d3d9_device_SetTexture().

Alexandre Julliard julliard at winehq.org
Thu Feb 13 15:36:31 CST 2020


Module: wine
Branch: master
Commit: 3fc644562e89aadfe279b3c3544f4e58a60ee1f4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3fc644562e89aadfe279b3c3544f4e58a60ee1f4

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Feb 12 09:21:50 2020 -0600

d3d9: Stop setting the device state in d3d9_device_SetTexture().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d9/device.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index cfa1d14cce..7a9e9400bb 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2568,9 +2568,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)




More information about the wine-cvs mailing list