From 8fad71799f7188d16c20498942e337b674a84594 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Tue, 12 Apr 2022 22:31:27 -0300 Subject: Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant It was being wrongly multiplied by 2. --- source/blender/python/gpu/gpu_py_shader_create_info.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/python/gpu/gpu_py_shader_create_info.cc b/source/blender/python/gpu/gpu_py_shader_create_info.cc index caf71ad5980..c67192d632d 100644 --- a/source/blender/python/gpu/gpu_py_shader_create_info.cc +++ b/source/blender/python/gpu/gpu_py_shader_create_info.cc @@ -666,9 +666,9 @@ static int constant_type_size(Type type) return 16; break; case Type::MAT3: - return 72 + 3 * 4; + return 36 + 3 * 4; case Type::MAT4: - return 128; + return 64; break; } BLI_assert(false); -- cgit v1.2.3