From 4746ab4bc92ba0f2e7f46a929692d2d05ba4bdec Mon Sep 17 00:00:00 2001 From: manuelk Date: Wed, 13 Jan 2016 11:33:38 -0800 Subject: [PATCH] Surround D3D10_SHADER_RESOURCES_MAY_ALIAS with #ifdef to avoid build errors with some versions of D3D SDK Fixes #773 --- opensubdiv/osd/d3d11ComputeEvaluator.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opensubdiv/osd/d3d11ComputeEvaluator.cpp b/opensubdiv/osd/d3d11ComputeEvaluator.cpp index 804717ec..eb1a09d1 100644 --- a/opensubdiv/osd/d3d11ComputeEvaluator.cpp +++ b/opensubdiv/osd/d3d11ComputeEvaluator.cpp @@ -204,8 +204,11 @@ D3D11ComputeEvaluator::Compile(BufferDescriptor const &srcDesc, return false; } - DWORD dwShaderFlags = D3DCOMPILE_ENABLE_STRICTNESS - | D3D10_SHADER_RESOURCES_MAY_ALIAS; + DWORD dwShaderFlags = D3DCOMPILE_ENABLE_STRICTNESS; +#if defined(D3D10_SHADER_RESOURCES_MAY_ALIAS) + dwShaderFlags |= D3D10_SHADER_RESOURCES_MAY_ALIAS; +#endif + #ifdef _DEBUG dwShaderFlags |= D3DCOMPILE_DEBUG; #endif