mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +01:00
force release of d3d9 device
This commit is contained in:
parent
b7b9a30dc0
commit
d318bae6aa
@ -159,13 +159,13 @@ BOOL d3d9_release()
|
||||
|
||||
if (g_d3d9.device)
|
||||
{
|
||||
IDirect3DDevice9_Release(g_d3d9.device);
|
||||
while (IDirect3DDevice9_Release(g_d3d9.device));
|
||||
g_d3d9.device = NULL;
|
||||
}
|
||||
|
||||
if (g_d3d9.instance)
|
||||
{
|
||||
IDirect3D9_Release(g_d3d9.instance);
|
||||
while (IDirect3D9_Release(g_d3d9.instance));
|
||||
g_d3d9.instance = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user