Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2022-04-13 04:31:27 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-04-13 04:31:27 +0300
commit8fad71799f7188d16c20498942e337b674a84594 (patch)
tree40f0cfdf30c9bcddc8153a015e587fb11d515175 /source/blender/python/gpu/gpu_py_shader_create_info.cc
parent17a19069db407b80bf6fbaf97e07bc239cf75e84 (diff)
Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant
It was being wrongly multiplied by 2.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader_create_info.cc')
-rw-r--r--source/blender/python/gpu/gpu_py_shader_create_info.cc4
1 files changed, 2 insertions, 2 deletions
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);