summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2011-01-29 08:34:57 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2011-01-29 08:34:57 +0000
commitd5e5730fef5b3e0dbc650fbda31008625c53dd7a (patch)
tree5a37b81bfac920e995249035b9ae23654517d23e /Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
parentfa95b7d89fe06735f151a3335fa19e5a70cc0934 (diff)
If perspective divide is enabled and texture coordinate Z is 0 then leave texture coordinates alone. Fixes issue 3676.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6964 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
index 67022ed928..05e5467ca6 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/OpcodeDecoder.cpp
@@ -28,6 +28,7 @@
#include "Statistics.h"
#include "DebugUtil.h"
#include "CommandProcessor.h"
+#include "SWVideoConfig.h"
typedef void (*DecodingFunction)(u32);
DecodingFunction currentFunction = NULL;
@@ -48,7 +49,11 @@ void DecodePrimitiveStream(u32 iBufferSize)
{
u32 vertexSize = vertexLoader.GetVertexSize();
- if(g_bSkipCurrentFrame)
+ bool skipPrimitives = g_bSkipCurrentFrame ||
+ stats.thisFrame.numDrawnObjects < g_SWVideoConfig.drawStart ||
+ stats.thisFrame.numDrawnObjects >= g_SWVideoConfig.drawEnd;
+
+ if (skipPrimitives)
{
while (streamSize > 0 && iBufferSize >= vertexSize)
{