1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Fix surface from array creation

* The debug check was not updated to the new format.
* Bug introduced by #50037
This commit is contained in:
reduz
2021-07-01 16:51:55 -03:00
parent 382ddd497a
commit 8cf812fba1

View File

@@ -2460,7 +2460,7 @@ void RendererStorageRD::mesh_add_surface(RID p_mesh, const RS::SurfaceData &p_su
} break;
case RS::ARRAY_COLOR: {
attrib_stride += sizeof(int16_t) * 4;
attrib_stride += sizeof(uint32_t);
} break;
case RS::ARRAY_TEX_UV: {
attrib_stride += sizeof(float) * 2;