Merge "Try harder to defeat GLSL compiler dead-code optimizations" into nougat-cts...
[platform/upstream/VK-GL-CTS.git] / modules / gles31 / functional / es31fProgramInterfaceDefinitionUtil.cpp
index 2137de5..c31d754 100644 (file)
@@ -1233,7 +1233,7 @@ static int getFragmentOutputMaxLocation (const ProgramInterfaceDefinition::Shade
                if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT)
                {
                        // missing location qualifier means location == 0
-                       const int outputLocation                = (shader->getDefaultBlock().variables[ndx].layout.location == -1)
+                       const int outputLocation                = (shader->getDefaultBlock().variables[ndx].layout.location == -1)
                                                                                                ? (0)
                                                                                                : (shader->getDefaultBlock().variables[ndx].layout.location);