Linux x86 fix. Wait for renderer thread to end.
This commit is contained in:
parent
20de593a88
commit
5960450e76
|
@ -506,6 +506,10 @@ void rend_term()
|
|||
|
||||
if (fLogFrames)
|
||||
fclose(fLogFrames);
|
||||
|
||||
#if !defined(TARGET_NO_THREADS)
|
||||
rthd.WaitToEnd();
|
||||
#endif
|
||||
}
|
||||
|
||||
void rend_vblank()
|
||||
|
|
|
@ -120,8 +120,10 @@ do_iter:
|
|||
pop ecx
|
||||
call rdv_DoInterrupts
|
||||
mov ecx,eax
|
||||
# cmp byte ptr [sh4_int_bCpuRun],0
|
||||
# jz cleanup
|
||||
mov edx,[p_sh4rcb];
|
||||
add edx,[cpurun_offset];
|
||||
cmp dword ptr [edx],0;
|
||||
jz cleanup;
|
||||
jmp no_update
|
||||
|
||||
cleanup:
|
||||
|
|
|
@ -132,6 +132,7 @@ naked void DYNACALL ngen_blockcheckfail2(u32 addr)
|
|||
}
|
||||
#else
|
||||
u32 gas_offs=offsetof(Sh4RCB,cntx.jdyn);
|
||||
u32 cpurun_offset=offsetof(Sh4RCB,cntx.CpuRunning);
|
||||
void (*ngen_FailedToFindBlock)()=&ngen_FailedToFindBlock_;
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue