Merge pull request #315 from mmicko/master

Cleanup for MINGW builds and FIX build
This commit is contained in:
Branimir Karadžić 2015-04-01 09:18:41 -07:00
commit 6394277397
5 changed files with 8 additions and 5 deletions

View File

@ -76,7 +76,7 @@ function bgfxProject(_name, _kind, _defines)
"GLESv2",
}
configuration { "mingw* or vs2008" }
configuration { "vs2008" }
includedirs {
"$(DXSDK_DIR)/include",
}

View File

@ -37,7 +37,7 @@ project ("example-common")
}
end
configuration { "mingw* or vs2008" }
configuration { "vs2008" }
includedirs {
"$(DXSDK_DIR)/include",
}

View File

@ -46,11 +46,13 @@ project "shaderc"
path.join(GLSL_OPTIMIZER, "include/c99"),
}
configuration { "windows" }
configuration { "vs*" }
includedirs {
"$(DXSDK_DIR)/include",
}
configuration { "windows" }
links {
"d3dx9",
"d3dcompiler",

View File

@ -390,7 +390,7 @@ namespace bgfx { namespace d3d9
}
if (BX_ENABLED(BGFX_CONFIG_DEBUG_PERFHUD)
&& 0 != strstr(description, "PerfHUD"))
&& 0 != strstr(desc.Description, "PerfHUD"))
{
m_adapter = ii;
m_deviceType = D3DDEVTYPE_REF;

View File

@ -250,6 +250,7 @@ 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;
@ -268,7 +269,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
disasm->Release();
}
}
#endif
if (NULL != code)
{
code->Release();