Improved OpenGL renderer

- Implemented color buffer reading.
This commit is contained in:
DH 2013-12-08 02:09:16 +02:00
parent bba1b6a6e0
commit 76a93443c3
4 changed files with 29 additions and 5 deletions

View file

@ -126,16 +126,15 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, mem32_ptr_t& args, const u3
Flip();
m_gcm_current_buffer = args[0];
m_read_buffer = true;
m_flip_status = 0;
if(m_flip_handler)
{
m_flip_handler.Handle(1, 0, 0);
m_flip_handler.Branch(false);
}
SemaphorePostAndWait(m_sem_flip);
//Emu.Pause();
}
break;
@ -612,6 +611,8 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, mem32_ptr_t& args, const u3
//ConLog.Warning("NV4097_SET_BEGIN_END: %x", a0);
m_read_buffer = false;
if(a0)
{
Begin(a0);
@ -1396,7 +1397,12 @@ void RSXThread::Task()
if(put == get || !Emu.IsRunning())
{
if(put == get)
{
if(m_flip_status == 0)
SemaphorePostAndWait(m_sem_flip);
SemaphorePostAndWait(m_sem_flush);
}
Sleep(1);
continue;