2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Fix a DirectX/VS/MinGW problem.

This commit is contained in:
Darryl Pogue
2012-02-05 14:38:18 -08:00
parent bf09905db4
commit 6654f41dce

View File

@ -62,6 +62,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef DXGetErrorString9 #ifndef DXGetErrorString9
#define DXGetErrorString9 DXGetErrorString #define DXGetErrorString9 DXGetErrorString
#endif #endif
#ifdef __MINGW32__ // UGH!
#define DXGetErrorString DXGetErrorString9
#endif
#else #else
#include <dxerr.h> #include <dxerr.h>
#endif #endif
@ -11834,7 +11837,7 @@ void plDXPipeline::ISetErrorMessage( char *errStr )
// Convert the last D3D error code to a string (probably "Conflicting Render State"). // Convert the last D3D error code to a string (probably "Conflicting Render State").
void plDXPipeline::IGetD3DError() void plDXPipeline::IGetD3DError()
{ {
sprintf( fSettings.fErrorStr, "D3DError : %s", (char *)DXGetErrorString9( fSettings.fDXError ) ); sprintf( fSettings.fErrorStr, "D3DError : %s", (char *)DXGetErrorString( fSettings.fDXError ) );
} }
// IShowErrorMessage ///////////////////////////////////////////////////////////// // IShowErrorMessage /////////////////////////////////////////////////////////////