Added D3DXDisassembleShader definition for MinGW.

This commit is contained in:
Branimir Karadžić 2015-04-01 10:59:10 -07:00
parent dbca022e31
commit 2d426d0e50

View file

@ -14,6 +14,12 @@ BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wundef");
#include <d3dx9.h>
BX_PRAGMA_DIAGNOSTIC_POP();
#if defined(__MINGW32__)
# ifndef D3DXDisassembleShader
extern "C" HRESULT WINAPI D3DXDisassembleShader(CONST DWORD* pShader, BOOL EnableColorCode, LPCSTR pComments, LPD3DXBUFFER* ppDisassembly);
# endif // D3DXDisassembleShader
#endif // !defined(__MINGW32__)
struct UniformRemapDx9
{
UniformType::Enum id;
@ -250,7 +256,6 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
uint8_t nul = 0;
bx::write(_writer, nul);
#if !defined(__MINGW32__)
if (_cmdLine.hasArg('\0', "disasm") )
{
LPD3DXBUFFER disasm;
@ -269,7 +274,6 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
disasm->Release();
}
}
#endif // !defined(__MINGW32__)
if (NULL != code)
{