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
commit dc874a732e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(;;)