16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 02:29:17 +02:00

Merge branch 'milek-dev' into gfx-work

This commit is contained in:
milek7
2019-01-01 00:25:18 +01:00
20 changed files with 564 additions and 512 deletions

View File

@@ -308,6 +308,9 @@ opengl_vbogeometrybank::draw_( gfx::geometry_handle const &Geometry)
// actual draw procedure starts here
auto &chunkrecord = m_chunkrecords.at(Geometry.chunk - 1);
// sanity check; shouldn't be needed but, eh
if( chunkrecord.size == 0 )
return;
auto const &chunk = gfx::geometry_bank::chunk( Geometry );
if( false == chunkrecord.is_good ) {
glBindBuffer( GL_ARRAY_BUFFER, m_buffer );