From c2ac9be9b23cde55da95b088e39b5bc5ee65a9f7 Mon Sep 17 00:00:00 2001 From: donkopunchstania Date: Wed, 14 Apr 2010 03:27:45 +0000 Subject: Some video SW clean up and bug fixes. Did a hacky fix for bad light data. Add fog rendering. Add some offsets to make rasterized pixel locations and texture coordinates more accurate. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5361 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp') 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]; } -} +} -- cgit v1.2.3