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:
parent
5f0fd6c063
commit
1ed54d6ce3
|
@ -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),
|
FIXME("Cannot convert %s to %s.\n", debug_d3dformat(src_texture->resource.format->id),
|
||||||
debug_d3dformat(dst_texture->resource.format->id));
|
debug_d3dformat(dst_texture->resource.format->id));
|
||||||
|
if (context)
|
||||||
|
context_release(context);
|
||||||
return WINED3DERR_NOTAVAILABLE;
|
return WINED3DERR_NOTAVAILABLE;
|
||||||
}
|
}
|
||||||
src_texture = converted_texture;
|
src_texture = converted_texture;
|
||||||
|
|
Loading…
Reference in New Issue