From c3c116317d1e90493530ad71a2d68cb715e63a88 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2019 12:08:20 +0200 Subject: [PATCH] Fences must be deleted. --- manual/tracy.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/manual/tracy.tex b/manual/tracy.tex index e952903c..41c569b1 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -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());