diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2010-04-14 03:27:45 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2010-04-14 03:27:45 +0000 |
| commit | c2ac9be9b23cde55da95b088e39b5bc5ee65a9f7 (patch) | |
| tree | 8524339b18baec4ad1d57e01201181bd23126851 /Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp | |
| parent | bfe6e92c15ea4ebd25070d1a95f0eca380f2c92b (diff) | |
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
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/Clipper.cpp | 7 |
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];
}
-} +}
|
