Enable GL_ARB_shading_language_packing in vertex shaders (#5022)

This commit is contained in:
Ben Doherty
2022-01-06 13:17:31 -08:00
committed by GitHub
parent 9d7f5f593e
commit 2f3aac29da

View File

@@ -357,7 +357,7 @@ void GLSLPostProcessor::fullOptimization(const TShader& tShader,
CompilerGLSL glslCompiler(move(spirv));
glslCompiler.set_common_options(glslOptions);
if (tShader.getStage() == EShLangFragment && !glslOptions.es) {
if (!glslOptions.es) {
// enable GL_ARB_shading_language_packing if available
glslCompiler.add_header_line("#extension GL_ARB_shading_language_packing : enable");
}