disable pollevents
This commit is contained in:
parent
bad88d7ed8
commit
ccf0b6745b
@ -46,14 +46,12 @@ void SDL_GL_SwapWindow_hook(SDL_Window* window) {
|
|||||||
static bool init_wminfo { false };
|
static bool init_wminfo { false };
|
||||||
if (!init_wminfo)
|
if (!init_wminfo)
|
||||||
{
|
{
|
||||||
logging::Info("%p", GetWindowWMInfo);
|
GetWindowWMInfo(window, &wminfo);
|
||||||
logging::Info("%d", GetWindowWMInfo(window, &wminfo));
|
|
||||||
init_wminfo = true;
|
init_wminfo = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool init { false };
|
static bool init { false };
|
||||||
|
|
||||||
static GLXContext overlay = nullptr;
|
|
||||||
static GLXContext tf2 = glXGetCurrentContext();
|
static GLXContext tf2 = glXGetCurrentContext();
|
||||||
|
|
||||||
if (cathook && !disable_visuals) {
|
if (cathook && !disable_visuals) {
|
||||||
@ -64,7 +62,7 @@ void SDL_GL_SwapWindow_hook(SDL_Window* window) {
|
|||||||
init = true;
|
init = true;
|
||||||
}
|
}
|
||||||
render_cheat_visuals();
|
render_cheat_visuals();
|
||||||
xoverlay_poll_events();
|
// xoverlay_poll_events();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
PROF_SECTION(SWAPWINDOW_tf2);
|
PROF_SECTION(SWAPWINDOW_tf2);
|
||||||
|
Reference in New Issue
Block a user