OpenGL Renderer: Oops!!! Fix a critical bug that completely broke all rendering!!! (Regression from commit ab3d489.)
This commit is contained in:
parent
ab3d48947a
commit
d70bc19d9a
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue