wined3d: Delete cursor texture on device reset.

This commit is contained in:
Piotr Pawlow 2011-07-05 18:55:44 +02:00 committed by Alexandre Julliard
parent 047124ab94
commit f6600263c1
1 changed files with 5 additions and 0 deletions

View File

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