You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix mat2 alignment
This commit is contained in:
@@ -70,8 +70,10 @@ static int _get_datatype_size(SL::DataType p_type) {
|
|||||||
case SL::TYPE_VEC2: return 8;
|
case SL::TYPE_VEC2: return 8;
|
||||||
case SL::TYPE_VEC3: return 12;
|
case SL::TYPE_VEC3: return 12;
|
||||||
case SL::TYPE_VEC4: return 16;
|
case SL::TYPE_VEC4: return 16;
|
||||||
case SL::TYPE_MAT2: return 16;
|
case SL::TYPE_MAT2:
|
||||||
case SL::TYPE_MAT3: return 44;
|
return 24; //4 * 4 + 4 * 2
|
||||||
|
case SL::TYPE_MAT3:
|
||||||
|
return 44; // 4 * 4 + 4 * 4 + 4 * 3
|
||||||
case SL::TYPE_MAT4: return 64;
|
case SL::TYPE_MAT4: return 64;
|
||||||
case SL::TYPE_SAMPLER2D: return 16;
|
case SL::TYPE_SAMPLER2D: return 16;
|
||||||
case SL::TYPE_ISAMPLER2D: return 16;
|
case SL::TYPE_ISAMPLER2D: return 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user