Fix build error
This commit is contained in:
parent
3350741e24
commit
ef203bfa38
1 changed files with 1 additions and 1 deletions
|
|
@ -1214,9 +1214,9 @@ EShLanguage FindLanguage(const std::string& name, bool parseStageName)
|
|||
size_t second_ext_start =
|
||||
has_first_ext ? name.find_last_of(".", first_ext_start - 1) : std::string::npos;
|
||||
bool has_second_ext = second_ext_start != std::string::npos;
|
||||
std::string first_ext = name.substr(first_ext_start + 1, std::string::npos);
|
||||
bool uses_unified_ext = has_first_ext && (first_ext == "glsl" ||
|
||||
first_ext == "hlsl");
|
||||
std::string first_ext = name.substr(first_ext_start + 1, std::string::npos);
|
||||
if (has_first_ext && !uses_unified_ext) {
|
||||
stage_name = first_ext;
|
||||
} else if (uses_unified_ext && has_second_ext) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue