Merge pull request #50058 from reduz/fix-surface-from-arrays

Fix surface from array creation
This commit is contained in:
Juan Linietsky 2021-07-01 17:50:02 -03:00 committed by GitHub
commit eefe276a82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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