Build: Fix more build warnings caused by PR #2038.

Revisit fix for #2062 for consistency with this commit.
This commit is contained in:
John Kessenich 2020-01-27 10:16:25 -07:00
parent d5f2f7b93d
commit 19ec0d2ff9
3 changed files with 10 additions and 3 deletions

View File

@ -355,7 +355,7 @@ int glslang_shader_preprocess(glslang_shader_t* shader, const glslang_input_t* i
return shader->shader->preprocess(
/* No user-defined resources limit */
&glslang::DefaultTBuiltInResource, i->default_version, c_shader_profile(i->default_profile),
(bool)i->force_default_version_and_profile, (bool)i->forward_compatible,
i->force_default_version_and_profile != 0, i->forward_compatible != 0,
(EShMessages)c_shader_messages(i->messages), &shader->preprocessedGLSL, Includer
);
}
@ -367,7 +367,7 @@ int glslang_shader_parse(glslang_shader_t* shader, const glslang_input_t* input)
return shader->shader->parse(
/* No user-defined resource limits for now */
&glslang::DefaultTBuiltInResource, input->default_version, (bool)input->forward_compatible,
&glslang::DefaultTBuiltInResource, input->default_version, input->forward_compatible != 0,
(EShMessages)c_shader_messages(input->messages));
}

View File

@ -2774,8 +2774,9 @@ bool TIntermediate::postProcess(TIntermNode* root, EShLanguage /*language*/)
case EShTexSampTransUpgradeTextureRemoveSampler:
performTextureUpgradeAndSamplerRemovalTransformation(root);
break;
default:
case EShTexSampTransCount:
assert(0);
break;
}
#endif

View File

@ -716,6 +716,9 @@ void TranslateEnvironment(const TEnvironment* environment, EShMessages& messages
case EShClientOpenGL:
spvVersion.openGl = environment->input.dialectVersion;
break;
case EShClientCount:
assert(0);
break;
}
switch (environment->input.languageFamily) {
case EShSourceNone:
@ -728,6 +731,9 @@ void TranslateEnvironment(const TEnvironment* environment, EShMessages& messages
source = EShSourceHlsl;
messages = static_cast<EShMessages>(messages | EShMsgReadHlsl);
break;
case EShClientCount:
assert(0);
break;
}
}