aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/primitive_assembly.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-07-27 17:34:11 +0200
committerGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-08-12 13:49:33 +0200
commit94aa9da562457e1fed4911d1cda770c3e42bd419 (patch)
treeba3b698dd4032c2882ea9b4d4395c9fde1d2c498 /src/video_core/primitive_assembly.cpp
parent9a76a2d0611fc0c35b665fb886d437e8f4d5b4df (diff)
Pica: Add triangle clipper.
Diffstat (limited to 'src/video_core/primitive_assembly.cpp')
-rw-r--r--src/video_core/primitive_assembly.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp
index b2196d13..2354ffb9 100644
--- a/src/video_core/primitive_assembly.cpp
+++ b/src/video_core/primitive_assembly.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
+#include "clipper.h"
#include "pica.h"
#include "primitive_assembly.h"
#include "vertex_shader.h"
@@ -23,8 +24,7 @@ void SubmitVertex(OutputVertex& vtx)
} else {
buffer_index = 0;
- // TODO
- // Clipper::ProcessTriangle(buffer[0], buffer[1], vtx);
+ Clipper::ProcessTriangle(buffer[0], buffer[1], vtx);
}
break;
@@ -32,8 +32,7 @@ void SubmitVertex(OutputVertex& vtx)
if (buffer_index == 2) {
buffer_index = 0;
- // TODO
- // Clipper::ProcessTriangle(buffer[0], buffer[1], vtx);
+ Clipper::ProcessTriangle(buffer[0], buffer[1], vtx);
buffer[1] = vtx;
} else {