diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c index c94d7b7fa..87102fe23 100644 --- a/src/video/windows/SDL_windowsvideo.c +++ b/src/video/windows/SDL_windowsvideo.c @@ -253,7 +253,7 @@ SDL_bool DXGI_LoadDLL(void **pDXGIDLL, IDXGIFactory **pDXGIFactory) { *pDXGIDLL = SDL_LoadObject("DXGI.DLL"); - if (!*pDXGIDLL) { + if (*pDXGIDLL) { HRESULT (WINAPI *CreateDXGI)( REFIID riid, void **ppFactory ); CreateDXGI =