From 986ed1c11edc3a5a9e5402296d6591ff71ee6f43 Mon Sep 17 00:00:00 2001 From: wysaid Date: Fri, 13 Sep 2024 10:53:21 +0800 Subject: [PATCH] bug fix --- library/src/main/jni/cge/common/cgeShaderFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/jni/cge/common/cgeShaderFunctions.cpp b/library/src/main/jni/cge/common/cgeShaderFunctions.cpp index 83fffc68..83c56819 100644 --- a/library/src/main/jni/cge/common/cgeShaderFunctions.cpp +++ b/library/src/main/jni/cge/common/cgeShaderFunctions.cpp @@ -196,7 +196,7 @@ void UniformParameters::assignUniforms(CGEImageHandlerInterface* hander, GLuint glUniform2i(uniformID, (*iter)->uniformValue[0].valuei, (*iter)->uniformValue[1].valuei); break; case uniformINTV3: - glUniform3i(uniformID, (*iter)->uniformValue[0].valuei, (*iter)->uniformValue[1].valuei, (*iter)->uniformValue[3].valuei); + glUniform3i(uniformID, (*iter)->uniformValue[0].valuei, (*iter)->uniformValue[1].valuei, (*iter)->uniformValue[2].valuei); break; case uniformINTV4: glUniform4i(uniformID, (*iter)->uniformValue[0].valuei, (*iter)->uniformValue[1].valuei, (*iter)->uniformValue[2].valuei, (*iter)->uniformValue[3].valuei);