Henri Verbeet : wined3d: Also destroy the logo and cursor textures in wined3d_device_reset() when resetting state.

Alexandre Julliard julliard at winehq.org
Thu Jan 30 13:25:27 CST 2014


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Jan 30 17:32:04 2014 +0100

wined3d: Also destroy the logo and cursor textures in wined3d_device_reset() when resetting state.

---

 dlls/wined3d/device.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6ef944c..256052f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4137,7 +4137,19 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
     }
 
     if (reset_state)
+    {
+        if (device->logo_texture)
+        {
+            wined3d_texture_decref(device->logo_texture);
+            device->logo_texture = NULL;
+        }
+        if (device->cursor_texture)
+        {
+            wined3d_texture_decref(device->cursor_texture);
+            device->cursor_texture = NULL;
+        }
         state_unbind_resources(&device->state);
+    }
 
     if (device->fb.render_targets)
     {




More information about the wine-cvs mailing list