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
diff --git a/src/libGLESv2/Program.cpp b/src/libGLESv2/Program.cpp
index f036a93..71de712 100644
--- a/src/libGLESv2/Program.cpp
+++ b/src/libGLESv2/Program.cpp
@@ -374,10 +374,8 @@
 
     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))
     {