Commit d9d82885 authored by Luis C. Busquets Pérez's avatar Luis C. Busquets Pérez Committed by Alexandre Julliard

d3dx9: Avoid assignment in D3DXGetVertexShaderProfile.

parent 35e16a2b
...@@ -119,7 +119,7 @@ LPCSTR WINAPI D3DXGetVertexShaderProfile(LPDIRECT3DDEVICE9 device) ...@@ -119,7 +119,7 @@ LPCSTR WINAPI D3DXGetVertexShaderProfile(LPDIRECT3DDEVICE9 device)
return "vs_1_1"; return "vs_1_1";
case D3DVS_VERSION(2, 0): case D3DVS_VERSION(2, 0):
if ((caps.VS20Caps.NumTemps>=13) && if ((caps.VS20Caps.NumTemps>=13) &&
(caps.VS20Caps.DynamicFlowControlDepth=24) && (caps.VS20Caps.DynamicFlowControlDepth==24) &&
(caps.VS20Caps.Caps&D3DPS20CAPS_PREDICATION)) (caps.VS20Caps.Caps&D3DPS20CAPS_PREDICATION))
{ {
return "vs_2_a"; return "vs_2_a";
......
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