d3d10core: Only destroy the device when it doesn't have any references left.
This commit is contained in:
parent
775ea907a3
commit
27a6bb5f08
|
@ -75,7 +75,10 @@ static ULONG STDMETHODCALLTYPE d3d10_device_inner_Release(IUnknown *iface)
|
|||
|
||||
TRACE("%p decreasing refcount to %u\n", This, refcount);
|
||||
|
||||
if (This->wined3d_device) IWineD3DDevice_Release(This->wined3d_device);
|
||||
if (!refcount)
|
||||
{
|
||||
if (This->wined3d_device) IWineD3DDevice_Release(This->wined3d_device);
|
||||
}
|
||||
|
||||
return refcount;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue