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
1 changed files with 1 additions and 1 deletions

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;