Explorar o código

Fix surface from array creation

* The debug check was not updated to the new format.
* Bug introduced by #50037
reduz %!s(int64=4) %!d(string=hai) anos
pai
achega
8cf812fba1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      servers/rendering/renderer_rd/renderer_storage_rd.cpp

+ 1 - 1
servers/rendering/renderer_rd/renderer_storage_rd.cpp

@@ -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;