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
@@ -3,9 +3,9 @@
#include "RageUtil.h"
#include <windows.h>
#include <dxerr.h>
#include <dxerr9.h>
#if defined(_MSC_VER)
# pragma comment(lib, "dxerr.lib")
# pragma comment(lib, "dxerr9.lib")
#endif
RString hr_ssprintf( int hr, const char *fmt, ... )
@@ -15,7 +15,7 @@ RString hr_ssprintf( int hr, const char *fmt, ... )
RString s = vssprintf( fmt, va );
va_end(va);
const char *szError = DXGetErrorString( hr );
const char *szError = DXGetErrorString9( hr );
return s + ssprintf( " (%s)", szError );
}