Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant

It was being wrongly multiplied by 2.
This commit is contained in:
Germano Cavalcante 2022-04-12 22:31:27 -03:00
parent 17a19069db
commit 8fad71799f
1 changed files with 2 additions and 2 deletions

View File

@ -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);