OpenGL Renderer: Oops!!! Fix a critical bug that completely broke all rendering!!! (Regression from commit ab3d489.)

This commit is contained in:
rogerman 2019-01-18 14:32:13 -08:00
parent ab3d48947a
commit d70bc19d9a
1 changed files with 1 additions and 1 deletions

View File

@ -1870,7 +1870,7 @@ size_t OpenGLRenderer::DrawPolygonsForIndexRange(const POLYLIST *polyList, const
// Enumerate through all polygons and render
GLsizei vertIndexCount = 0;
GLushort *indexBufferPtr = OGLRef.vertIndexBuffer + indexOffset;
GLushort *indexBufferPtr = (this->isVBOSupported) ? (GLushort *)NULL + indexOffset : OGLRef.vertIndexBuffer + indexOffset;
for (size_t i = firstIndex; i <= lastIndex; i++)
{