1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-01 13:13:53 +00:00

GPU source location may not yet be available.

This commit is contained in:
Bartosz Taudul 2018-07-15 19:00:40 +02:00
parent df75b25a3f
commit c6ea032de3

View File

@ -888,8 +888,14 @@ const char* Worker::GetZoneName( const GpuEvent& ev ) const
const char* Worker::GetZoneName( const GpuEvent& ev, const SourceLocation& srcloc ) const
{
assert( srcloc.name.active );
return GetString( srcloc.name );
if( srcloc.name.active )
{
return GetString( srcloc.name );
}
else
{
return GetString( srcloc.function );
}
}
std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) const