mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Fences must be deleted.
This commit is contained in:
parent
00a468162d
commit
c3c116317d
@ -507,6 +507,7 @@ while(!m_fiQueue.empty())
|
|||||||
const auto fiIdx = m_fiQueue.front();
|
const auto fiIdx = m_fiQueue.front();
|
||||||
assert(fiIdx != m_fiIdx);
|
assert(fiIdx != m_fiIdx);
|
||||||
if(glClientWaitSync(m_fiFence[fiIdx], 0, 0) == GL_TIMEOUT_EXPIRED) break;
|
if(glClientWaitSync(m_fiFence[fiIdx], 0, 0) == GL_TIMEOUT_EXPIRED) break;
|
||||||
|
glDeleteSync(m_fiFence[fiIdx]);
|
||||||
glBindBuffer(GL_PIXEL_PACK_BUFFER, m_fiPbo[fiIdx]);
|
glBindBuffer(GL_PIXEL_PACK_BUFFER, m_fiPbo[fiIdx]);
|
||||||
auto ptr = glMapBufferRange(GL_PIXEL_PACK_BUFFER, 0, 320*180*4, GL_MAP_READ_BIT);
|
auto ptr = glMapBufferRange(GL_PIXEL_PACK_BUFFER, 0, 320*180*4, GL_MAP_READ_BIT);
|
||||||
FrameImage(ptr, 320, 180, m_fiQueue.size());
|
FrameImage(ptr, 320, 180, m_fiQueue.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user