Commit 9b62f5e5 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Add a dirty rect to managed textures when resetting.

parent df70d099
......@@ -12119,7 +12119,7 @@ static void test_managed_reset(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
draw_textured_quad(&context, texture);
check_rt_color_todo(context.backbuffer, 0x0000ff00);
check_rt_color(context.backbuffer, 0x0000ff00);
IDirect3DTexture8_Release(texture);
release_test_context(&context);
......
......@@ -27863,7 +27863,7 @@ static void test_managed_reset(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
draw_textured_quad(&context, texture);
check_rt_color_todo(context.backbuffer, 0x0000ff00);
check_rt_color(context.backbuffer, 0x0000ff00);
IDirect3DTexture9_Release(texture);
release_test_context(&context);
......@@ -5829,6 +5829,9 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
{
TRACE("Unloading resource %p.\n", resource);
wined3d_cs_emit_unload_resource(device->cs, resource);
if (resource->usage & WINED3DUSAGE_MANAGED)
mark_managed_resource_dirty(resource);
}
device->adapter->adapter_ops->adapter_uninit_3d(device);
......
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