16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 18:19:19 +02:00

on second thought, checking for function pointers is more optimal

This commit is contained in:
milek7
2021-01-22 22:27:15 +01:00
parent 9e7c528114
commit 63edbe91c2
3 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ opengl_vbogeometrybank::draw_( gfx::geometry_handle const &Geometry, gfx::stream
chunkrecord.index_count, GL_UNSIGNED_INT, reinterpret_cast<void const *>( chunkrecord.index_offset * sizeof( gfx::basic_index ) ),
chunkrecord.vertex_offset );
*/
if (GLAD_GL_VERSION_3_2 || GLAD_GL_ARB_draw_elements_base_vertex) {
if (glDrawRangeElementsBaseVertex) {
if( m_activestreams != Streams ) {
bind_streams( Units, Streams );
}