aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2020-11-19 17:46:21 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2020-11-19 17:46:21 +0100
commit50cdfd01378e72167e5ec5a5fb8c93d894afa566 (patch)
treeed0bedb4978fed920c3c43a0f514daf5e818a2a9 /src
parent690eed9e262ae794715ec915d4cc44db844a27b9 (diff)
fix edge indices count
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D_OpenGL.cpp2
1 files changed, 1 insertions, 1 deletions
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)