From d2ea7cfea4881894c49a7c874eeca15b9eea825b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 18 Apr 2014 12:43:10 -0700 Subject: [PATCH] Fixed logic error loading DXGI --- src/video/windows/SDL_windowsvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =