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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user