Add missing NV_EXTENSIONS ifdef

This commit is contained in:
Jeff Bolz 2019-06-04 09:47:41 -05:00
parent 9fe95274f8
commit 71e5b1323d

View File

@ -4988,8 +4988,10 @@ void TParseContext::setLayoutQualifier(const TSourceLoc& loc, TPublicType& publi
requireProfile(loc, ECoreProfile | ECompatibilityProfile, "fragment shader interlock layout qualifier");
profileRequires(loc, ECoreProfile | ECompatibilityProfile, 450, nullptr, "fragment shader interlock layout qualifier");
requireExtensions(loc, 1, &E_GL_ARB_fragment_shader_interlock, TQualifier::getInterlockOrderingString(order));
#ifdef NV_EXTENSIONS
if (order == EioShadingRateInterlockOrdered || order == EioShadingRateInterlockUnordered)
requireExtensions(loc, 1, &E_GL_NV_shading_rate_image, TQualifier::getInterlockOrderingString(order));
#endif
publicType.shaderQualifiers.interlockOrdering = order;
return;
}