From f6600263c1b35fb8576ec064b2fabdf1e097b82e Mon Sep 17 00:00:00 2001 From: Piotr Pawlow Date: Tue, 5 Jul 2011 18:55:44 +0200 Subject: [PATCH] wined3d: Delete cursor texture on device reset. --- dlls/wined3d/device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index a47911926fc..7d9dd9f18ba 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);