diff --git a/tracy-client/src/lib.rs b/tracy-client/src/lib.rs index 85dcfa2..32fdec7 100644 --- a/tracy-client/src/lib.rs +++ b/tracy-client/src/lib.rs @@ -115,7 +115,6 @@ impl Span { } #[cfg(feature="enable")] unsafe { - sys::___tracy_init_thread(); let loc = sys::___tracy_alloc_srcloc_name( line, file.as_ptr() as _, @@ -366,7 +365,6 @@ impl Drop for Frame { pub fn message(message: &str, callstack_depth: u16) { #[cfg(feature="enable")] unsafe { - sys::___tracy_init_thread(); sys::___tracy_emit_message( message.as_ptr() as _, message.len(), @@ -384,7 +382,6 @@ pub fn message(message: &str, callstack_depth: u16) { pub fn color_message(message: &str, rgba: u32, callstack_depth: u16) { #[cfg(feature="enable")] unsafe { - sys::___tracy_init_thread(); sys::___tracy_emit_messageC( message.as_ptr() as _, message.len(),