mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +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:
parent
6c6c6caef0
commit
9df369ecc4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user