summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2010-10-21 15:06:01 +0000
committerskidau <skidau@gmail.com>2010-10-21 15:06:01 +0000
commit4c4348a0a7cb777fee51408debc732f399df2fa4 (patch)
tree8622a56d49b9a288d5fcfffacbf6f1756c507c03 /Source
parente9734084ee1058e8c76d5c39d686bae728adbcb9 (diff)
Applied the change from r6297 to the DX11 plug-in.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6298 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoDX11/Src/main.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/main.cpp b/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
index 1d444bf039..b11940b2d9 100644
--- a/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
+++ b/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
@@ -335,26 +335,22 @@ void Video_BeginField(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
{
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
{
- if (g_VideoInitialize.bOnThread)
- {
- while (Common::AtomicLoadAcquire(s_swapRequested) && !s_FifoShuttingDown)
- //Common::SleepCurrentThread(1);
- Common::YieldCPU();
- }
- else
+ if (!g_VideoInitialize.bOnThread)
VideoFifo_CheckSwapRequest();
s_beginFieldArgs.xfbAddr = xfbAddr;
s_beginFieldArgs.field = field;
s_beginFieldArgs.fbWidth = fbWidth;
s_beginFieldArgs.fbHeight = fbHeight;
-
- Common::AtomicStoreRelease(s_swapRequested, TRUE);
}
}
// Run from the CPU thread (from VideoInterface.cpp)
void Video_EndField()
{
+ if (s_PluginInitialized)
+ {
+ Common::AtomicStoreRelease(s_swapRequested, TRUE);
+ }
}
void Video_AddMessage(const char* pstr, u32 milliseconds)