From 50cdfd01378e72167e5ec5a5fb8c93d894afa566 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 19 Nov 2020 17:46:21 +0100 Subject: fix edge indices count --- src/GPU3D_OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp index 8b9f06c..ba9548e 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) -- cgit v1.2.3