fixes resolution changes during run time with d3d9 and opengl renderers
This commit is contained in:
parent
202e4eb869
commit
5477e5139a
3 changed files with 45 additions and 37 deletions
|
@ -130,17 +130,13 @@ BOOL Direct3D9_Release()
|
|||
|
||||
if (D3dDev)
|
||||
{
|
||||
if (FAILED(D3dDev->lpVtbl->Release(D3dDev)))
|
||||
return FALSE;
|
||||
|
||||
D3dDev->lpVtbl->Release(D3dDev);
|
||||
D3dDev = NULL;
|
||||
}
|
||||
|
||||
if (D3d)
|
||||
{
|
||||
if (FAILED(D3d->lpVtbl->Release(D3d)))
|
||||
return FALSE;
|
||||
|
||||
D3d->lpVtbl->Release(D3d);
|
||||
D3d = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue