Merge pull request #508 from davidgyu/dxfix

Fixed HLSL shader compile error.
This commit is contained in:
George ElKoura 2015-05-20 22:25:14 -07:00
commit 32e9bb7e29

View File

@ -277,10 +277,10 @@ HS_CONSTANT_FUNC_OUT HSConstFunc(
float3 p[4];
#if defined OSD_ENABLE_SCREENSPACE_TESSELLATION
p[0] = mul(OsdModelViewMatrix() * float4(patch[0].position, 1)).xyz;
p[1] = mul(OsdModelViewMatrix() * float4(patch[1].position, 1)).xyz;
p[2] = mul(OsdModelViewMatrix() * float4(patch[2].position, 1)).xyz;
p[3] = mul(OsdModelViewMatrix() * float4(patch[3].position, 1)).xyz;
p[0] = mul(OsdModelViewMatrix(), float4(patch[0].position, 1)).xyz;
p[1] = mul(OsdModelViewMatrix(), float4(patch[1].position, 1)).xyz;
p[2] = mul(OsdModelViewMatrix(), float4(patch[2].position, 1)).xyz;
p[3] = mul(OsdModelViewMatrix(), float4(patch[3].position, 1)).xyz;
#else
p[0] = patch[0].position.xyz;
p[1] = patch[1].position.xyz;