Fix segfault when switching monitors with kmsgrab

This commit is contained in:
loki
2021-08-08 13:42:25 +02:00
parent 13d0106feb
commit 24403cdd25
4 changed files with 14 additions and 12 deletions

View File

@@ -22,10 +22,6 @@ extern "C" {
#define SUNSHINE_SHADERS_DIR SUNSHINE_ASSETS_DIR "/shaders/opengl"
#define STRINGIFY(x) #x
#define gl_drain_errors_helper(x) gl::drain_errors("line " STRINGIFY(x))
#define gl_drain_errors gl_drain_errors_helper(__LINE__)
using namespace std::literals;
namespace gl {
GladGLContext ctx;