1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Merge pull request #339 from voysys/fix-server-assertion-crash

Ignore uninitialized GPU contexts when rendering GPU events
This commit is contained in:
Bartosz Taudul
2022-03-17 18:54:34 +01:00
committed by GitHub
+1 -1
View File
@@ -19275,7 +19275,7 @@ uint64_t View::GetZoneThread( const GpuEvent& zone ) const
{
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;
if( timeline->empty() ) continue;
for(;;)