[Fix] (Pipe): skip the location tables a failed relink cleared when emitting program bindings

This commit is contained in:
2026-10-12 15:30:33 -04:00
parent da6b172d08
commit cd26f508df
3 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ namespace MobileGL::MG_Pipe {
for (Uint loc = 0; loc <= maxUniformLoc; ++loc) {
// The same guard CacheResourceLocations uses one level down: a location with no
// uniform behind it has an empty name and must not index the type tables.
if (program.GetUniformName(loc).empty()) continue;
if (!program.HasUniformLocationTables(loc) || program.GetUniformName(loc).empty()) continue;
const Int unit = program.GetUniformSamplerOrImageUnitIndex(loc);
if (unit < 0) continue;
if (m_samplerUnits.size() >= kMGPipeMaxProgramSamplerUnits) {