Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic.
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Jun 2014 08:58:07 -0700
changeset 8797 cad43a408f22
parent 8796 9159d5c47819
child 8798 2703c0c19f45
Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic.
src/video/windows/SDL_windowsvideo.c
--- a/src/video/windows/SDL_windowsvideo.c	Sat May 31 14:03:04 2014 -0700
+++ b/src/video/windows/SDL_windowsvideo.c	Mon Jun 02 08:58:07 2014 -0700
@@ -185,8 +185,10 @@
     *pD3DDLL = SDL_LoadObject("D3D9.DLL");
     if (*pD3DDLL) {
         typedef IDirect3D9 *(WINAPI *Direct3DCreate9_t) (UINT SDKVersion);
+        Direct3DCreate9_t Direct3DCreate9Func;
+
+#ifdef USE_D3D9EX
         typedef HRESULT (WINAPI *Direct3DCreate9Ex_t)(UINT SDKVersion, IDirect3D9Ex **ppD3D);
-        Direct3DCreate9_t Direct3DCreate9Func;
         Direct3DCreate9Ex_t Direct3DCreate9ExFunc;
 
         Direct3DCreate9ExFunc = (Direct3DCreate9Ex_t)SDL_LoadFunction(*pD3DDLL, "Direct3DCreate9Ex");
@@ -202,6 +204,7 @@
                 }
             }
         }
+#endif /* USE_D3D9EX */
 
         Direct3DCreate9Func = (Direct3DCreate9_t)SDL_LoadFunction(*pD3DDLL, "Direct3DCreate9");
         if (Direct3DCreate9Func) {