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);