Commit d2ea7cfea4881894c49a7c874eeca15b9eea825b

Sam Lantinga 2014-04-18T12:43:10

Fixed logic error loading DXGI

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c
index c94d7b7..87102fe 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 =