mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
memset the thread to 0 when writing the GpuZoneEnd as this seems to prevent an assert failure
This commit is contained in:
parent
cc45865239
commit
bf1896f6ba
@ -3996,7 +3996,7 @@ TRACY_API void ___tracy_emit_gpu_zone_end( const struct ___tracy_gpu_zone_end_da
|
||||
{
|
||||
TracyLfqPrepareC( tracy::QueueType::GpuZoneEnd );
|
||||
tracy::MemWrite( &item->gpuZoneEnd.cpuTime, tracy::Profiler::GetTime() );
|
||||
tracy::MemWrite( &item->gpuNewContext.thread, tracy::GetThreadHandle() );
|
||||
memset( &item->gpuZoneEnd.thread, 0, sizeof( item->gpuZoneEnd.thread ) );
|
||||
tracy::MemWrite( &item->gpuZoneEnd.queryId, data.queryId );
|
||||
tracy::MemWrite( &item->gpuZoneEnd.context, data.context );
|
||||
TracyLfqCommitC;
|
||||
|
Loading…
Reference in New Issue
Block a user