wined3d: Release context on CPU blit failure.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2017-05-07 20:32:33 +02:00 committed by Alexandre Julliard
parent 5f0fd6c063
commit 1ed54d6ce3
1 changed files with 2 additions and 0 deletions

View File

@ -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;