Browse Source

Update DxilMDHelper's SM for correct MinValVersion info. (#2701)

Bug triggered DXASSERT, but otherwise harmless on fre builds.
Tex Riddell 5 years ago
parent
commit
5a1fd7ebf5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/DXIL/DxilMetadataHelper.cpp

+ 1 - 0
lib/DXIL/DxilMetadataHelper.cpp

@@ -229,6 +229,7 @@ void DxilMDHelper::LoadDxilShaderModel(const ShaderModel *&pSM) {
     string ErrorMsg(ErrorMsgTxt);
     throw hlsl::Exception(DXC_E_INCORRECT_DXIL_METADATA, ErrorMsg);
   }
+  SetShaderModel(pSM);
 }
 
 //