@@ -1044,8 +1044,9 @@ void appendToOptionsLogFile(std::string const &message)
1044
1044
os.close ();
1045
1045
}
1046
1046
1047
- static thread_local ShaderHash g_CurrentShaderHash;
1048
1047
static thread_local std::vector<std::string> g_CurrentEntryPointNames;
1048
+
1049
+ static thread_local ShaderHash g_CurrentShaderHash;
1049
1050
void SetCurrentDebugHash (const ShaderHash& hash)
1050
1051
{
1051
1052
g_CurrentShaderHash = hash;
@@ -1062,6 +1063,7 @@ void ClearCurrentEntryPoints()
1062
1063
g_CurrentEntryPointNames.clear ();
1063
1064
}
1064
1065
1066
+
1065
1067
bool CheckHashRange (SRegKeyVariableMetaData& varname)
1066
1068
{
1067
1069
if (varname.hashes .empty ()) {
@@ -1118,16 +1120,19 @@ bool CheckEntryPoint(SRegKeyVariableMetaData& varname)
1118
1120
std::string msg = " Warning: entry point not set yet; IGC_GET_FLAG_VALUE(" + std::string (varname.GetName ()) + " ) returned default value" ;
1119
1121
appendToOptionsLogFile (msg);
1120
1122
}
1121
- // looping entry point recorded by regkey metadata
1122
- for (auto & it : varname.entry_points )
1123
+
1123
1124
{
1124
- // looping each entry point of current shader
1125
- for (std::string& CurrEntryPoint : g_CurrentEntryPointNames )
1125
+ // looping entry point recorded by regkey metadata
1126
+ for (auto & it : varname. entry_points )
1126
1127
{
1127
- if (CurrEntryPoint == it.entry_point_name )
1128
+ // looping each entry point of current shader
1129
+ for (std::string& CurrEntryPoint : g_CurrentEntryPointNames)
1128
1130
{
1129
- varname.m_Value = it.m_Value ;
1130
- return true ;
1131
+ if (CurrEntryPoint == it.entry_point_name )
1132
+ {
1133
+ varname.m_Value = it.m_Value ;
1134
+ return true ;
1135
+ }
1131
1136
}
1132
1137
}
1133
1138
}
0 commit comments