wined3d: Don't free backends if they're not created yet.

This would crash if CreateAdditionalSwapChain() failed.
This commit is contained in:
H. Verbeet 2008-08-20 22:45:02 +02:00 committed by Alexandre Julliard
parent b77ba1babf
commit c33e03cca3
1 changed files with 9 additions and 3 deletions

View File

@ -2259,9 +2259,15 @@ err_out:
IWineD3DStateBlock_Release((IWineD3DStateBlock *) This->stateBlock);
This->stateBlock = NULL;
}
if (This->blit_priv) {
This->blitter->free_private(iface);
}
if (This->fragment_priv) {
This->frag_pipe->free_private(iface);
}
if (This->shader_priv) {
This->shader_backend->shader_free_private(iface);
}
return hr;
}