From 74e390295157d88a1d0aab485cf6684563fd7140 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sun, 4 May 2025 18:27:24 +0800 Subject: [PATCH] [Fix] (ProgramState): Fix the uniform-type-changing error in UniformValue::setData. --- MG/MG_GL/State/Program/ProgramState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MG/MG_GL/State/Program/ProgramState.cpp b/MG/MG_GL/State/Program/ProgramState.cpp index 6a0a11e0..9a01da02 100644 --- a/MG/MG_GL/State/Program/ProgramState.cpp +++ b/MG/MG_GL/State/Program/ProgramState.cpp @@ -464,7 +464,7 @@ void ProgramState::CleanupShaders_() { template 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();