You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix several ubsan reported misaligned accesses
These misaligned accesses are shown in all of our CI hooks. It turned out to not be difficult to fix. It is likely that this will improve performance for aarch64.
This commit is contained in:
@@ -228,6 +228,7 @@ int32_t RenderingDeviceGraph::_add_to_write_list(int32_t p_command_index, Rect2i
|
||||
|
||||
RenderingDeviceGraph::RecordedCommand *RenderingDeviceGraph::_allocate_command(uint32_t p_command_size, int32_t &r_command_index) {
|
||||
uint32_t command_data_offset = command_data.size();
|
||||
command_data_offset = STEPIFY(command_data_offset, 8);
|
||||
command_data_offsets.push_back(command_data_offset);
|
||||
command_data.resize(command_data_offset + p_command_size);
|
||||
r_command_index = command_count++;
|
||||
|
||||
Reference in New Issue
Block a user