Commit a6e515af authored by Michael Karcher's avatar Michael Karcher Committed by Alexandre Julliard

d3d9/tests: Keep swapchain while its backbuffer is in use.

parent a2c6b25e
......@@ -255,6 +255,7 @@ static void execute_test_chain(
typedef struct event_data {
IDirect3DStateBlock9* stateblock;
IDirect3DSurface9* original_render_target;
IDirect3DSwapChain9* new_swap_chain;
} event_data;
static int switch_render_target(
......@@ -293,7 +294,7 @@ static int switch_render_target(
if (hret != D3D_OK) goto error;
IUnknown_Release(backbuffer);
IUnknown_Release(swapchain);
edata->new_swap_chain = swapchain;
return EVENT_OK;
error:
......@@ -318,6 +319,8 @@ static int revert_render_target(
}
IUnknown_Release(edata->original_render_target);
IUnknown_Release(edata->new_swap_chain);
return EVENT_OK;
}
......
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