Commit 82b38139 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent d041a46c
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment