From 4dae36cb73ae0678a0d7952a676f65514776a2cb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 6 Sep 2020 14:02:18 +0200 Subject: [PATCH] Don't use EVENT_FILTER_EVENT_ID, etc with SDK < Win 8.1. --- client/TracySysTrace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 3b1ed818..44c788d0 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -248,6 +248,7 @@ void WINAPI EventRecordCallbackVsync( PEVENT_RECORD record ) static void SetupVsync() { +#if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE const auto psz = sizeof( EVENT_TRACE_PROPERTIES ) + MAX_PATH; s_propVsync = (EVENT_TRACE_PROPERTIES*)tracy_malloc( psz ); memset( s_propVsync, 0, sizeof( EVENT_TRACE_PROPERTIES ) ); @@ -325,6 +326,7 @@ static void SetupVsync() SetThreadName( "Tracy Vsync" ); ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr ); }, nullptr ); +#endif } bool SysTraceStart( int64_t& samplingPeriod )