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.
This commit is contained in:
parent
97462b57c8
commit
4b8ff170e4
@ -15,15 +15,10 @@
|
||||
#include <stdio.h>
|
||||
#include <xoverlay.h>
|
||||
|
||||
#include <dlfcn.h> // 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user