wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
8.61k stars 592 forks source link

Fix for assert in GetGpuSourceLocationZonesCntReal #804

Closed AWoloszyn closed 1 month ago

AWoloszyn commented 1 month ago

When TRACY_NO_STATISTICS is defined, the assert in GetGpuSourceLocationZonesCntReal will always get hit as nothing is ever inserted in gpuSourceLocationZonesCnt unless reading from a file.

Match the behavior with GetGpuSourceLocationZonesReal to add the source location if it is missing.