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
This commit is contained in:
parent
e9734084ee
commit
4c4348a0a7
|
@ -335,26 +335,22 @@ void Video_BeginField(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
||||||
{
|
{
|
||||||
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
||||||
{
|
{
|
||||||
if (g_VideoInitialize.bOnThread)
|
if (!g_VideoInitialize.bOnThread)
|
||||||
{
|
|
||||||
while (Common::AtomicLoadAcquire(s_swapRequested) && !s_FifoShuttingDown)
|
|
||||||
//Common::SleepCurrentThread(1);
|
|
||||||
Common::YieldCPU();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
VideoFifo_CheckSwapRequest();
|
VideoFifo_CheckSwapRequest();
|
||||||
s_beginFieldArgs.xfbAddr = xfbAddr;
|
s_beginFieldArgs.xfbAddr = xfbAddr;
|
||||||
s_beginFieldArgs.field = field;
|
s_beginFieldArgs.field = field;
|
||||||
s_beginFieldArgs.fbWidth = fbWidth;
|
s_beginFieldArgs.fbWidth = fbWidth;
|
||||||
s_beginFieldArgs.fbHeight = fbHeight;
|
s_beginFieldArgs.fbHeight = fbHeight;
|
||||||
|
|
||||||
Common::AtomicStoreRelease(s_swapRequested, TRUE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run from the CPU thread (from VideoInterface.cpp)
|
// Run from the CPU thread (from VideoInterface.cpp)
|
||||||
void Video_EndField()
|
void Video_EndField()
|
||||||
{
|
{
|
||||||
|
if (s_PluginInitialized)
|
||||||
|
{
|
||||||
|
Common::AtomicStoreRelease(s_swapRequested, TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Video_AddMessage(const char* pstr, u32 milliseconds)
|
void Video_AddMessage(const char* pstr, u32 milliseconds)
|
||||||
|
|
Loading…
Reference in New Issue