gsdx: gl logging is only available in MTGS thread

Fix crash in debug build
This commit is contained in:
Gregory Hainaut 2016-09-22 17:54:44 +02:00
parent b00ae974d2
commit d89b09427f
1 changed files with 5 additions and 2 deletions

View File

@ -1669,8 +1669,11 @@ void GSState::Read(uint8* mem, int len)
int h = m_env.TRXREG.RRH;
GSVector4i r(sx, sy, sx + w, sy + h);
// Function is called from the EE thread. Unforunately gl stuff can only be used from a single thread (AKA MTGS)
if (GLLoader::in_replayer) {
GL_CACHE("Read! len=%d SBP=%05x SBW=%d SPSM=%s SSAX=%d SSAY=%d RRW=%d RRH=%d",
len, (int)m_env.BITBLTBUF.SBP, (int)m_env.BITBLTBUF.SBW, psm_str(m_env.BITBLTBUF.SPSM), sx, sy, w, h);
}
if(!m_tr.Update(w, h, GSLocalMemory::m_psm[m_env.BITBLTBUF.SPSM].trbpp, len))
{