diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp index 8b9f06c5..ba9548e3 100644 --- a/src/GPU3D_OpenGL.cpp +++ b/src/GPU3D_OpenGL.cpp @@ -784,7 +784,7 @@ void BuildPolygons(RendererPolygon* polygons, int npolys) NumVertices = vidx; NumIndices = iidx; - NumEdgeIndices = eidx; + NumEdgeIndices = eidx - EdgeIndicesOffset; } void RenderSinglePolygon(int i)