mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Merge pull request #46557 from asmaloney/remove-impossible-condition
Remove impossible condition in RenderingServer::mesh_surface_make_offsets_from_format
This commit is contained in:
commit
5352cf8e2f
1 changed files with 1 additions and 12 deletions
|
@ -772,19 +772,11 @@ void RenderingServer::mesh_surface_make_offsets_from_format(uint32_t p_format, i
|
|||
elem_size = 3;
|
||||
}
|
||||
|
||||
{
|
||||
elem_size *= sizeof(float);
|
||||
}
|
||||
|
||||
if (elem_size == 6) {
|
||||
elem_size = 8;
|
||||
}
|
||||
|
||||
elem_size *= sizeof(float);
|
||||
} break;
|
||||
case RS::ARRAY_NORMAL: {
|
||||
elem_size = 4;
|
||||
} break;
|
||||
|
||||
case RS::ARRAY_TANGENT: {
|
||||
elem_size = 4;
|
||||
} break;
|
||||
|
@ -793,12 +785,9 @@ void RenderingServer::mesh_surface_make_offsets_from_format(uint32_t p_format, i
|
|||
} break;
|
||||
case RS::ARRAY_TEX_UV: {
|
||||
elem_size = 8;
|
||||
|
||||
} break;
|
||||
|
||||
case RS::ARRAY_TEX_UV2: {
|
||||
elem_size = 8;
|
||||
|
||||
} break;
|
||||
case RS::ARRAY_CUSTOM0:
|
||||
case RS::ARRAY_CUSTOM1:
|
||||
|
|
Loading…
Add table
Reference in a new issue