mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 21:32:01 +00:00
wined3d: Also destroy the logo and cursor textures in wined3d_device_reset() when resetting state.
This commit is contained in:
parent
d041a46caa
commit
82b38139eb
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user