Browse Source

Fix shader preprocessor constructor call (#3030)

Co-authored-by: Issam <[email protected]>
issam3105 2 years ago
parent
commit
6f36b4fb3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/shaderc/shaderc.cpp

+ 1 - 1
tools/shaderc/shaderc.cpp

@@ -1105,7 +1105,7 @@ namespace bgfx
 
 		const Profile *profile = &s_profiles[profile_id];
 
-		Preprocessor preprocessor(_options.inputFilePath.c_str(), profile->lang != ShadingLang::ESSL);
+		Preprocessor preprocessor(_options.inputFilePath.c_str(), profile->lang == ShadingLang::ESSL);
 
 		for (size_t ii = 0; ii < _options.includeDirs.size(); ++ii)
 		{