1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

[3.x] Fix shader compiler asan out of bounds

This commit is contained in:
dzil123
2022-11-16 06:33:40 -08:00
parent 0803b4168d
commit aa0b91ca52
5 changed files with 34 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ static int _get_datatype_size(SL::DataType p_type) {
return 16;
case SL::TYPE_STRUCT:
return 0;
default: {
}
}
ERR_FAIL_V(0);
@@ -185,6 +187,8 @@ static int _get_datatype_alignment(SL::DataType p_type) {
return 16;
case SL::TYPE_STRUCT:
return 0;
default: {
}
}
ERR_FAIL_V(0);