瀏覽代碼

give better error message if wrong version of DX9 SDK is installed

David Rose 20 年之前
父節點
當前提交
643fbbd763
共有 1 個文件被更改,包括 2 次插入12 次删除
  1. 2 12
      panda/src/dxgsg9/dxgsg9base.h

+ 2 - 12
panda/src/dxgsg9/dxgsg9base.h

@@ -38,20 +38,10 @@
 #include <dxerr9.h>
 #undef WIN32_LEAN_AND_MEAN
 
-/* ***** DX9
-#if D3D_SDK_VERSION != 220
-#error you have DX 8.0 headers, not DX 8.1, you need to install DX 8.1 SDK!
+#if (D3D_SDK_VERSION & 0xffff) < 32
+#error You need to install the latest DirectX9 SDK.
 #endif
 
-#if DIRECT3D_VERSION != 0x0900
-#error DX8.1 headers not available, you need to install newer MS Platform SDK!
-#endif
-
-#ifndef D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD
-#error you have pre-release DX8.1 headers, you need to install final DX 8.1 SDK!
-#endif
-*/
-
 #ifndef D3DERRORSTRING
 #ifdef NDEBUG
 #define D3DERRORSTRING(HRESULT) " at (" << __FILE__ << ":" << __LINE__ << "), hr=" <<  DXGetErrorString9(HRESULT) << endl  // leave out descriptions to shrink release build