[Fix] (ProgramState): Fix the uniform-type-changing error in UniformValue::setData.

This commit is contained in:
BZLZHH
2025-05-04 18:27:24 +08:00
parent 12649bf4d7
commit 74e3902951
+1 -1
View File
@@ -464,7 +464,7 @@ void ProgramState::CleanupShaders_() {
template<typename T>
void UniformValue::setData(GLenum uniformType, GLsizei numElements, const T* values) {
MG_Util::Debug::LogD("MG_State: Program: UniformValue::setData called, type=0x%X, count=%d", uniformType, numElements);
type = uniformType;
//type = uniformType;
count = numElements;
floatData.clear();