Henri Verbeet : wined3d: Unbind all textures in wined3d_device_reset().

Alexandre Julliard julliard at winehq.org
Tue Jul 26 11:37:53 CDT 2011


Module: wine
Branch: master
Commit: 27b20bac43a1cc54037d2daec81f90d3f3479473
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=27b20bac43a1cc54037d2daec81f90d3f3479473

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Jul 25 20:45:09 2011 +0200

wined3d: Unbind all textures in wined3d_device_reset().

---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 9fd82b5..2db0e3f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5634,7 +5634,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
     {
         wined3d_device_set_stream_source(device, i, NULL, 0, 0);
     }
-    for (i = 0; i < MAX_FRAGMENT_SAMPLERS; ++i)
+    for (i = 0; i < MAX_COMBINED_SAMPLERS; ++i)
     {
         wined3d_device_set_texture(device, i, NULL);
     }




More information about the wine-cvs mailing list