[Fix] (MG_Impl/GLImpl, MG_State/GLState): validate frag data link locations [skip ci]

This commit is contained in:
2026-07-02 16:47:13 +08:00
parent b9de562491
commit 633a25b456
3 changed files with 54 additions and 0 deletions
@@ -589,6 +589,10 @@ namespace MobileGL::MG_Impl::GLImpl {
const auto& rendererInfo = activeBackendObject->GetRendererInfo();
allowVSOnlyPrograms = (Int)rendererInfo.StaticBackendCapability.AllowVSOnlyPrograms;
}
const auto& activeBackendObject = MG_Backend::pActiveBackendObject;
if (activeBackendObject) {
programObject->SetMaxFragmentOutputColorNumber(activeBackendObject->GetDynamicParameters().MaxDrawBuffers);
}
programObject->Link(!allowVSOnlyPrograms);
}