mirror of https://github.com/libsdl-org/SDL.git
Fix DXGI cleanup code
This commit is contained in:
parent
ff66ec5fb5
commit
76c4c16ca9
|
|
@ -104,12 +104,12 @@ static void WIN_DeleteDevice(SDL_VideoDevice *device)
|
|||
SDL_UnloadObject(data->shcoreDLL);
|
||||
}
|
||||
#endif
|
||||
#ifndef HAVE_DXGI_H
|
||||
#ifdef HAVE_DXGI_H
|
||||
if (data->pDXGIFactory) {
|
||||
IDXGIFactory_Release(pDXGIFactory);
|
||||
IDXGIFactory_Release(data->pDXGIFactory);
|
||||
}
|
||||
if (data->dxgiDLL) {
|
||||
SDL_UnloadObject(pDXGIDLL);
|
||||
SDL_UnloadObject(data->dxgiDLL);
|
||||
}
|
||||
#endif
|
||||
if (device->wakeup_lock) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue