mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Ignore uninitialized GPU contexts when rendering GPU events
This fixes an assertion crash when viewing GPU zones when no zones have been recorded on a GPU context if the client is compiled with TRACY_ON_DEMAND
This commit is contained in:
parent
f058ad01fc
commit
2c79194e7d
@ -19245,7 +19245,7 @@ uint64_t View::GetZoneThread( const GpuEvent& zone ) const
|
|||||||
{
|
{
|
||||||
for( const auto& ctx : m_worker.GetGpuData() )
|
for( const auto& ctx : m_worker.GetGpuData() )
|
||||||
{
|
{
|
||||||
assert( ctx->threadData.size() == 1 );
|
if ( ctx->threadData.size() != 1 ) continue;
|
||||||
const Vector<short_ptr<GpuEvent>>* timeline = &ctx->threadData.begin()->second.timeline;
|
const Vector<short_ptr<GpuEvent>>* timeline = &ctx->threadData.begin()->second.timeline;
|
||||||
if( timeline->empty() ) continue;
|
if( timeline->empty() ) continue;
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Loading…
Reference in New Issue
Block a user