Merge branch 'fix_csharp_profiler_events' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-fix_csharp_profiler_events
This commit is contained in:
@@ -126,7 +126,7 @@ void ProfilerCPU::Thread::EndEvent()
|
||||
{
|
||||
const double time = Platform::GetTimeSeconds() * 1000.0;
|
||||
_depth--;
|
||||
Event& e = Buffer.Get(Buffer.GetCount() - 1);
|
||||
Event& e = (Buffer.Last()--).Event();
|
||||
e.End = time;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user