You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
[3.x] Fix shader compiler asan out of bounds
(cherry picked from commit aa0b91ca52)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user