[Bf-blender-cvs] [8fad71799f7] master: Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant
Germano Cavalcante
noreply at git.blender.org
Wed Apr 13 03:57:32 CEST 2022
Commit: 8fad71799f7188d16c20498942e337b674a84594
Author: Germano Cavalcante
Date: Tue Apr 12 22:31:27 2022 -0300
Branches: master
https://developer.blender.org/rB8fad71799f7188d16c20498942e337b674a84594
Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant
It was being wrongly multiplied by 2.
===================================================================
M source/blender/python/gpu/gpu_py_shader_create_info.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list