summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2009-11-11 03:14:38 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2009-11-11 03:14:38 +0000
commit52da977c73a1b9de7e6c5892a67d2ab783b2edcc (patch)
tree639be5f3dd438c9daa9697c30b8910470dbde4dd /Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp
parentc2a4e3331356acc40bdbc314b858dd10e49c955b (diff)
Fixes to the software plugin command processor. Made it easy to use the command processor in place of the one in video common. Use frame skip setting from the application in the software plugin instead of the internal frame skipping config setting. The WGP does not loop if the write pointer is set beyond the end of the fifo.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4527 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp
index 96ecf82ba3..1bf9a163b1 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/EfbCopy.cpp
@@ -25,6 +25,7 @@
#include "VideoConfig.h"
#include "DebugUtil.h"
#include "HwRasterizer.h"
+#include "CommandProcessor.h"
namespace EfbCopy
@@ -73,7 +74,7 @@ namespace EfbCopy
if (bpmem.triggerEFBCopy.copy_to_xfb)
DebugUtil::OnFrameEnd();
- if (!g_SkipFrame)
+ if (!g_bSkipCurrentFrame)
{
if (bpmem.triggerEFBCopy.copy_to_xfb)
{
@@ -95,5 +96,13 @@ namespace EfbCopy
ClearEfb();
}
}
+ else
+ {
+ if (bpmem.triggerEFBCopy.copy_to_xfb)
+ {
+ // no frame rendered but tell that a frame has finished for frame skip counter
+ g_VideoInitialize.pCopiedToXFB(false);
+ }
+ }
}
} \ No newline at end of file