Fix compile error on BSD

The cast here should actually be from '0' and not 'NULL' as we are
getting an integer value of 0 for the bbox_idx_count

Fixes https://gitlab.com/kicad/code/kicad/issues/8580
This commit is contained in:
Seth Hillbrand 2021-06-16 09:18:03 -07:00
parent c8444913df
commit 3269ca3201
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void MODEL_3D::DrawBbox() const
reinterpret_cast<const void*>( offsetof( VERTEX, m_color ) ) ); reinterpret_cast<const void*>( offsetof( VERTEX, m_color ) ) );
glDrawElements( GL_LINES, bbox_idx_count, m_bbox_index_buffer_type, glDrawElements( GL_LINES, bbox_idx_count, m_bbox_index_buffer_type,
reinterpret_cast<const void*>( NULL ) ); reinterpret_cast<const void*>( 0 ) );
} }