17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-09 10:12:24 +01:00

fix: the build after the merge of master

This commit is contained in:
2026-11-07 16:46:11 +01:00
parent d4120ea5db
commit acbea51f81
5 changed files with 6 additions and 7 deletions

View File

@@ -1313,7 +1313,8 @@ gfx::userdata_array const &vulkan14_renderer::UserData(gfx::geometry_handle cons
int vulkan14_renderer::Primitive(gfx::geometry_handle const &Geometry) const
{
return static_cast<int>(m_geometry.type(Geometry));
auto const primitive{m_geometry.primitive(Geometry)};
return primitive == gfx::geometry_bank::no_primitive ? -1 : static_cast<int>(primitive);
}
// materials and their programs: the materials are read as for the opengl renderer, their programs are made of vertex.vert and