[Fix] (MG_State): Make uniformObj.count correct. Disable all freeIds now.

This commit is contained in:
BZLZHH
2025-05-16 23:35:44 +08:00
parent 6901e9584f
commit 354d0882eb
8 changed files with 68 additions and 17 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ namespace MG_Util::Program {
std::ostringstream ss;
ss << "[";
const size_t elemCount = std::min<size_t>(value.count, 16); // 限制最大显示元素
const size_t elemCount = std::min<size_t>(value.count, 16);
switch(value.type) {
case GL_FLOAT:
-2
View File
@@ -395,8 +395,6 @@ namespace MG_Util::Program {
prog.uniformLocations[name] = final_location;
UniformValue uniformValue;
uniformValue.type = gl_type;
uniformValue.count = spvc_type_get_array_dimension(type, 0) > 0 ?
spvc_type_get_array_dimension(type, 0) : 1;
prog.uniformValues[name] = uniformValue;
}
}