Fix size of MAT3 and MAT4 in GPUShaderCreateInfo.push_constant
It was being wrongly multiplied by 2.
This commit is contained in:
parent
17a19069db
commit
8fad71799f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue