From ccf0b6745b7414051d4560113a837feef05a75b8 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sat, 2 Dec 2017 17:06:39 +0300 Subject: [PATCH] disable pollevents --- src/hooks/sdl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hooks/sdl.cpp b/src/hooks/sdl.cpp index 1fed079c..e560b133 100644 --- a/src/hooks/sdl.cpp +++ b/src/hooks/sdl.cpp @@ -46,14 +46,12 @@ void SDL_GL_SwapWindow_hook(SDL_Window* window) { static bool init_wminfo { false }; if (!init_wminfo) { - logging::Info("%p", GetWindowWMInfo); - logging::Info("%d", GetWindowWMInfo(window, &wminfo)); + GetWindowWMInfo(window, &wminfo); init_wminfo = true; } static bool init { false }; - static GLXContext overlay = nullptr; static GLXContext tf2 = glXGetCurrentContext(); if (cathook && !disable_visuals) { @@ -64,7 +62,7 @@ void SDL_GL_SwapWindow_hook(SDL_Window* window) { init = true; } render_cheat_visuals(); - xoverlay_poll_events(); +// xoverlay_poll_events(); } { PROF_SECTION(SWAPWINDOW_tf2);