mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix crash when executing RenderingServer.mesh_surface_get_format_offset
This commit is contained in:
parent
4eb9e3326e
commit
909c905d28
1 changed files with 1 additions and 0 deletions
|
|
@ -701,6 +701,7 @@ Error RenderingServer::_surface_set_data(Array p_arrays, uint32_t p_format, uint
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t RenderingServer::mesh_surface_get_format_offset(uint32_t p_format, int p_vertex_len, int p_array_index) const {
|
uint32_t RenderingServer::mesh_surface_get_format_offset(uint32_t p_format, int p_vertex_len, int p_array_index) const {
|
||||||
|
ERR_FAIL_INDEX_V(p_array_index, ARRAY_MAX, 0);
|
||||||
p_format &= ~ARRAY_FORMAT_INDEX;
|
p_format &= ~ARRAY_FORMAT_INDEX;
|
||||||
uint32_t offsets[ARRAY_MAX];
|
uint32_t offsets[ARRAY_MAX];
|
||||||
uint32_t vstr;
|
uint32_t vstr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue