Merge pull request #50058 from reduz/fix-surface-from-arrays
Fix surface from array creation
This commit is contained in:
commit
eefe276a82
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue