SM5 didnt want to compile with DirectX SDK (Summer 2004), which is the original DX9.0c SDK, please use conditional compilation for newer SDKs. Summer 2004 has the following constant: #define D3D_SDK_VERSION 32

This commit is contained in:
Aldo Fregoso
2013-06-02 22:45:15 -05:00
parent d08b1da838
commit 8e37673954
3 changed files with 26 additions and 18 deletions
+3 -3
View File
@@ -15,7 +15,7 @@
#include <D3dx9tex.h>
#include <d3d9.h>
#include <dxerr.h>
#include <dxerr9.h>
#include "archutils/Win32/GraphicsWindow.h"
@@ -24,7 +24,7 @@
#if defined(_MSC_VER)
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "DxErr.lib")
#pragma comment(lib, "DxErr9.lib")
#endif
#include <math.h>
@@ -32,7 +32,7 @@
RString GetErrorString( HRESULT hr )
{
return DXGetErrorString(hr);
return DXGetErrorString9(hr);
}
// Globals