remove redundant check
authorgeorgeouzou <geothrock@gmail.com>
Sat, 12 Oct 2019 12:17:29 +0000 (15:17 +0300)
committergeorgeouzou <geothrock@gmail.com>
Sat, 12 Oct 2019 12:17:29 +0000 (15:17 +0300)
glslang/MachineIndependent/ParseHelper.cpp

index a1e8e3400a93515930f7dcd785bf9c4b2f5b27ab..5165eae565c672ea3f7a1ffad2a0e5be994fe4a7 100644 (file)
@@ -5861,9 +5861,7 @@ void TParseContext::layoutQualifierCheck(const TSourceLoc& loc, const TQualifier
             const char* feature = "location qualifier on uniform or buffer";
             requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile | ENoProfile, feature);
             profileRequires(loc, ~EEsProfile, 330, E_GL_ARB_explicit_attrib_location, feature);
-            if (!isEsProfile() && (extensionTurnedOn(E_GL_ARB_explicit_attrib_location) || version >= 330)) {
-                profileRequires(loc, ~EEsProfile, 430, E_GL_ARB_explicit_uniform_location, feature);
-            }
+            profileRequires(loc, ~EEsProfile, 430, E_GL_ARB_explicit_uniform_location, feature);
             profileRequires(loc, EEsProfile, 310, nullptr, feature);
             break;
         }