mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-15 05:07:27 +00:00
Fix DXGI cleanup code
This commit is contained in:
committed by
Ozkan Sezer
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) {
|
||||
|
||||
Reference in New Issue
Block a user