From d78317847dd4c565c21ff2ec01d9bc247982aae3 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Wed, 20 Jan 2016 09:35:27 -0500 Subject: [PATCH] Fix link error when profiling is disabled These four functions are needed by microprofile even when profiling is disabled. --- src/xenia/base/profiling.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xenia/base/profiling.cc b/src/xenia/base/profiling.cc index 96f2ff4b4..b078e18a9 100644 --- a/src/xenia/base/profiling.cc +++ b/src/xenia/base/profiling.cc @@ -272,8 +272,6 @@ void Profiler::Present() {} } // namespace xe -#if XE_OPTION_PROFILING - uint32_t MicroProfileGpuInsertTimeStamp() { return 0; } uint64_t MicroProfileGpuGetTimeStamp(uint32_t nKey) { return 0; } @@ -282,6 +280,7 @@ uint64_t MicroProfileTicksPerSecondGpu() { return 0; } const char* MicroProfileGetThreadName() { return "TODO: get thread name!"; } +#if XE_OPTION_PROFILING #if XE_OPTION_PROFILING_UI void MicroProfileDrawBox(int nX, int nY, int nX1, int nY1, uint32_t nColor,