瀏覽代碼

Fix a few cases where surface format is still 32 bits

clayjohn 2 年之前
父節點
當前提交
1df50c78df
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      scene/resources/immediate_mesh.h
  2. 1 1
      scene/resources/mesh.h

+ 1 - 1
scene/resources/immediate_mesh.h

@@ -63,7 +63,7 @@ class ImmediateMesh : public Mesh {
 		Ref<Material> material;
 		bool vertex_2d = false;
 		int array_len = 0;
-		uint32_t format = 0;
+		uint64_t format = 0;
 		AABB aabb;
 	};
 

+ 1 - 1
scene/resources/mesh.h

@@ -301,7 +301,7 @@ class ArrayMesh : public Mesh {
 
 private:
 	struct Surface {
-		uint32_t format = 0;
+		uint64_t format = 0;
 		int array_length = 0;
 		int index_array_length = 0;
 		PrimitiveType primitive = PrimitiveType::PRIMITIVE_MAX;