1
0
forked from 0ad/0ad

# Fixed a crash on older graphics cards.

This was SVN commit r4720.
This commit is contained in:
Matei 2006-12-21 17:17:14 +00:00
parent 0462336cf2
commit c0637279e6

View File

@ -423,7 +423,11 @@ void CMiniMap::Draw()
glPushMatrix();
glTranslatef(0, 0, z);
// Unbind any vertex buffer object, if our card supports VBO's
if (g_Renderer.GetCapabilities().m_VBO)
{
pglBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
}
glInterleavedArrays(GL_C4UB_V2F, sizeof(MinimapUnitVertex), &vertexArray[0]);
glDrawArrays(GL_POINTS, 0, (GLsizei)vertexArray.size());