Fix DXGI cleanup code

This commit is contained in:
Daniel Ludwig 2024-07-25 08:32:48 +02:00 committed by Ozkan Sezer
parent ff66ec5fb5
commit 76c4c16ca9
1 changed files with 3 additions and 3 deletions

View File

@ -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) {