Now initilize VTXBUFF_ACCRETION to 0.0, and accretion now works as expected.

This commit is contained in:
JackHsu
2019-08-12 12:34:38 +08:00
parent 89128af44b
commit b782ead4f3
3 changed files with 5 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ acmesh_create(const AcMeshInfo& mesh_info)
return mesh;
}
static void
void
vertex_buffer_set(const VertexBufferHandle& key, const AcReal& val, AcMesh* mesh)
{
const int n = acVertexBufferSize(mesh->info);

View File

@@ -48,6 +48,8 @@ extern const char* init_type_names[]; // Defined in host_memory.cc
AcMesh* acmesh_create(const AcMeshInfo& mesh_info);
void vertex_buffer_set(const VertexBufferHandle& key, const AcReal& val, AcMesh* mesh);
void acmesh_clear(AcMesh* mesh);
void acmesh_init_to(const InitType& type, AcMesh* mesh);