Use the latest D3DX version for D3DXCompileShader instead of forcing D3DX9_31

TRAC #11347 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@93 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 41187f1d
......@@ -374,10 +374,8 @@ ID3DXBuffer *Program::compileToBinary(const char *hlsl, const char *profile, ID3
ID3DXBuffer *binary = NULL;
ID3DXBuffer *errorMessage = NULL;
DWORD flags = D3DXSHADER_USE_LEGACY_D3DX9_31_DLL |
D3DXSHADER_PREFER_FLOW_CONTROL;
HRESULT result = D3DXCompileShader(hlsl, (UINT)strlen(hlsl), NULL, 0, "main", profile, flags, &binary, &errorMessage, constantTable);
HRESULT result = D3DXCompileShader(hlsl, (UINT)strlen(hlsl), NULL, 0, "main", profile, 0, &binary, &errorMessage, constantTable);
if (SUCCEEDED(result))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment