Setup gfx::mesh when loading imported mesh
This commit is contained in:
parent
94cb475ecc
commit
abc0af2a79
1 changed files with 1 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ namespace psemek::gfx
|
|||
|
||||
void mesh::load_raw(imported_mesh const & m)
|
||||
{
|
||||
setup(m.attribs);
|
||||
load_raw(m.vertices.data(), m.attribs.vertex_size, m.vertices.size() / m.attribs.vertex_size, m.indices.data(), gl::UNSIGNED_INT, m.indices.size(), gl::TRIANGLES, gl::STATIC_DRAW);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue