From 4b8ff170e45c870b6c7096d24d6fb70a1530848c Mon Sep 17 00:00:00 2001 From: Rebekah Rowe Date: Mon, 4 Apr 2022 18:00:17 -0400 Subject: [PATCH] Revert "Fix steam overlay issue" This reverts commit 02cc3d29c3636e4d7ccf57f19f509a5f79103969. This commit is buggy and only intended for use with the source engine. In your recording platform should you only record the window and not the screen. User error is not my problem. --- src/xoverlay.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/xoverlay.c b/src/xoverlay.c index 70cc32a..c5bbfce 100644 --- a/src/xoverlay.c +++ b/src/xoverlay.c @@ -15,15 +15,10 @@ #include #include -#include // dlsym - int event_ShapeNotify; int event_ShapeError; struct xoverlay_library xoverlay_library; -typedef void ( *glXSwapBuffers_t) (Display *dpy, GLXDrawable drawable); -glXSwapBuffers_t glXSwapBuffersfn; - int preinit_done = 0; int xoverlay_init() @@ -57,13 +52,6 @@ int xoverlay_init() return -5; } - glXSwapBuffersfn = (glXSwapBuffers_t) dlsym((void *)0xFFFFFFFF, "glXSwapBuffers"); // copied from gameoverlayrenderer.so - - if (!glXSwapBuffersfn) // not my problem - { - return -6; - } - xoverlay_library.init = 1; return 0; @@ -109,6 +97,6 @@ void xoverlay_draw_end() { if (!xoverlay_library.init) return; - glXSwapBuffersfn(xoverlay_library.display, xoverlay_library.window); + glXSwapBuffers(xoverlay_library.display, xoverlay_library.window); xoverlay_library.drawing = 0; }