mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 23:07:45 +08: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);
|
SDL_UnloadObject(data->shcoreDLL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef HAVE_DXGI_H
|
#ifdef HAVE_DXGI_H
|
||||||
if (data->pDXGIFactory) {
|
if (data->pDXGIFactory) {
|
||||||
IDXGIFactory_Release(pDXGIFactory);
|
IDXGIFactory_Release(data->pDXGIFactory);
|
||||||
}
|
}
|
||||||
if (data->dxgiDLL) {
|
if (data->dxgiDLL) {
|
||||||
SDL_UnloadObject(pDXGIDLL);
|
SDL_UnloadObject(data->dxgiDLL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (device->wakeup_lock) {
|
if (device->wakeup_lock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user