mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 08:21:56 +09:00
[Fix] (Pipe): skip the location tables a failed relink cleared when emitting program bindings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user