1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 12:53:51 +00:00

Move call to clRetainEvent outside of assert within

OpenCLCtx::collect, ensuring it is still called when
NDEBUG is defined.
This commit is contained in:
John Lynch 2021-01-21 12:27:26 -06:00
parent 6c6c6caef0
commit 9df369ecc4

View File

@ -125,7 +125,8 @@ namespace tracy {
if (eventInfo.phase == EventPhase::End) if (eventInfo.phase == EventPhase::End)
{ {
// Done with the event, so release it // Done with the event, so release it
assert(clReleaseEvent(event) == CL_SUCCESS); err = clReleaseEvent(event);
assert(err == CL_SUCCESS);
} }
m_tail = (m_tail + 1) % QueryCount; m_tail = (m_tail + 1) % QueryCount;