mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Improved OpenGL renderer
- Implemented color buffer reading.
This commit is contained in:
parent
bba1b6a6e0
commit
76a93443c3
4 changed files with 29 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue