Piotr Pawlow : wined3d: Delete cursor texture on device reset.

Alexandre Julliard julliard at winehq.org
Tue Jul 5 12:59:07 CDT 2011


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

Author: Piotr Pawlow <pp at siedziba.pl>
Date:   Tue Jul  5 18:55:44 2011 +0200

wined3d: Delete cursor texture on device reset.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a479119..7d9dd9f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5538,6 +5538,11 @@ static void delete_opengl_contexts(struct wined3d_device *device, struct wined3d
         device->depth_blt_rb_w = 0;
         device->depth_blt_rb_h = 0;
     }
+    if (device->cursorTexture)
+    {
+        glDeleteTextures(1, &device->cursorTexture);
+        device->cursorTexture = 0;
+    }
     LEAVE_GL();
 
     device->blitter->free_private(device);




More information about the wine-cvs mailing list