wined3d: Remove duplicated code.
This commit is contained in:
parent
e2881758a1
commit
3127eac2bd
|
@ -2486,10 +2486,6 @@ create_device_error:
|
||||||
IWineD3DSurface_Release(object->stencilBufferTarget);
|
IWineD3DSurface_Release(object->stencilBufferTarget);
|
||||||
object->stencilBufferTarget = NULL;
|
object->stencilBufferTarget = NULL;
|
||||||
}
|
}
|
||||||
if (object->stencilBufferTarget != NULL) {
|
|
||||||
IWineD3DSurface_Release(object->stencilBufferTarget);
|
|
||||||
object->stencilBufferTarget = NULL;
|
|
||||||
}
|
|
||||||
HeapFree(GetProcessHeap(), 0, object);
|
HeapFree(GetProcessHeap(), 0, object);
|
||||||
*ppReturnedDeviceInterface = NULL;
|
*ppReturnedDeviceInterface = NULL;
|
||||||
return WINED3DERR_INVALIDCALL;
|
return WINED3DERR_INVALIDCALL;
|
||||||
|
|
Loading…
Reference in New Issue