mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fix DXGI cleanup code
This commit is contained in:
parent
ff66ec5fb5
commit
76c4c16ca9
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue