Fences must be deleted.

This commit is contained in:
Bartosz Taudul 2019-06-08 12:08:20 +02:00
parent 00a468162d
commit c3c116317d

View File

@ -507,6 +507,7 @@ while(!m_fiQueue.empty())
const auto fiIdx = m_fiQueue.front();
assert(fiIdx != m_fiIdx);
if(glClientWaitSync(m_fiFence[fiIdx], 0, 0) == GL_TIMEOUT_EXPIRED) break;
glDeleteSync(m_fiFence[fiIdx]);
glBindBuffer(GL_PIXEL_PACK_BUFFER, m_fiPbo[fiIdx]);
auto ptr = glMapBufferRange(GL_PIXEL_PACK_BUFFER, 0, 320*180*4, GL_MAP_READ_BIT);
FrameImage(ptr, 320, 180, m_fiQueue.size());