mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
EFB Access now works from both Dual Core and Single Core modes. Thread-safe.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3644 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -32,6 +32,8 @@
|
||||
volatile u32 g_XFBUpdateRequested = FALSE;
|
||||
extern u8* g_pVideoData;
|
||||
|
||||
volatile bool g_EFBAccessRequested = false;
|
||||
|
||||
namespace {
|
||||
|
||||
static volatile bool fifoStateRun = false;
|
||||
@ -139,6 +141,12 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
||||
video_initialize.pPeekMessages();
|
||||
#endif
|
||||
|
||||
if (g_EFBAccessRequested)
|
||||
{
|
||||
Video_OnThreadAccessEFB();
|
||||
g_EFBAccessRequested = false;
|
||||
}
|
||||
|
||||
// Draw XFB if CP/GPfifo isn't used
|
||||
if (g_XFBUpdateRequested)
|
||||
{
|
||||
|
Reference in New Issue
Block a user