use VAF_ formats in CreateVAB

This commit is contained in:
2020-07-28 19:09:38 +08:00
parent 9229aa8d11
commit 98b428b1fd
2 changed files with 3 additions and 3 deletions

View File

@@ -180,8 +180,8 @@ private:
render_obj=material->CreateRenderable(tile_count);
vertex_buffer =db->CreateVAB(FMT_RGBA32F,tile_count,vertex_data);
tex_coord_buffer=db->CreateVAB(FMT_RGBA32F,tile_count,tex_coord_data);
vertex_buffer =db->CreateVAB(VAF_VEC4,tile_count,vertex_data);
tex_coord_buffer=db->CreateVAB(VAF_VEC4,tile_count,tex_coord_data);
render_obj->Set("Vertex",vertex_buffer);
render_obj->Set("TexCoord",tex_coord_buffer);