Commit 1ed54d6c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Release context on CPU blit failure.

parent 5f0fd6c0
......@@ -2929,6 +2929,8 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
{
FIXME("Cannot convert %s to %s.\n", debug_d3dformat(src_texture->resource.format->id),
debug_d3dformat(dst_texture->resource.format->id));
if (context)
context_release(context);
return WINED3DERR_NOTAVAILABLE;
}
src_texture = converted_texture;
......
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