diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index c8e1f5891b..243ebedc18 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1178,6 +1178,8 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const FlushGLErrors(); const MeshInfo& meshInfo = m_vMeshInfo[iMeshIndex]; + if( !meshInfo.iVertexCount || !meshInfo.iTriangleCount ) + return; glEnableClientState(GL_VERTEX_ARRAY); GLExt::glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nPositions );