mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Fix]: save order of uniform names, and apply it at linking and buffer mapping
This commit is contained in:
@@ -232,7 +232,8 @@ namespace MG_GL::GL {
|
||||
MG_Util::Debug::LogD("UBO mapped successfully for program %u. Updating uniform values.", program);
|
||||
uint8_t* uboData = static_cast<uint8_t*>(mapped);
|
||||
|
||||
for (auto& [name, uniform] : programObj.uniformValues) {
|
||||
for (auto& name: programInfo.uniformBufferNames) {
|
||||
auto& uniform = programObj.uniformValues[name];
|
||||
if (IsSamplerType(uniform.type)) continue;
|
||||
|
||||
auto it = programInfo.uniformOffsets.find(name);
|
||||
|
||||
Reference in New Issue
Block a user