mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
In OpenCLCtxScope::SetEvent, the necessary clRetainEvent
call was inside an assert, thus never called if NDEBUG was defined. This change asserts only on the return value of the function, as in other parts of the code.
This commit is contained in:
+2
-1
@@ -261,7 +261,8 @@ namespace tracy {
|
||||
tracy_force_inline void SetEvent(cl_event event)
|
||||
{
|
||||
m_event = event;
|
||||
assert(clRetainEvent(m_event) == CL_SUCCESS);
|
||||
cl_int err = clRetainEvent(m_event);
|
||||
assert(err == CL_SUCCESS);
|
||||
m_ctx->GetQuery(m_beginQueryId).event = m_event;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user