Fixed bug in profiling method where method was called twice without profiling enabled

This commit is contained in:
Andy Adshead 2019-01-27 22:57:28 +00:00
commit ee60de6bf4

View file

@ -52,7 +52,10 @@ namespace Ryujinx.Profiler
{ {
// If profiling is disabled just call the method // If profiling is disabled just call the method
if (!ProfilingEnabled()) if (!ProfilingEnabled())
{
method(); method();
return;
}
Begin(config); Begin(config);
method(); method();