summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp
index b97ad3795d..50dc4bfada 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp
@@ -62,7 +62,7 @@ namespace Clipper
float m_ViewOffset[3];
OutputVertexData ClippedVertices[18];
OutputVertexData *Vertices[21];
-
+
void Init()
{
for (int i = 0; i < 18; ++i)
@@ -339,6 +339,9 @@ namespace Clipper
Vertices[0] = lineV0;
Vertices[1] = lineV1;
+ // point to a valid vertex to store to when clipping
+ Vertices[2] = &ClippedVertices[17];
+
ClipLine(indices);
if(indices[0] != SKIP_FLAG)
@@ -437,4 +440,4 @@ namespace Clipper
screen.z = projected.z * wInverse + m_ViewOffset[2];
}
-}
+}