|
|
@ -107,12 +107,7 @@ EXPORT_C_(void) glXDestroyContext(void *dpy, void *ctx)
|
|
|
|
EXPORT_C_(int) glXMakeCurrent(void* dpy, void* drawable, void* ctx) {
|
|
|
|
EXPORT_C_(int) glXMakeCurrent(void* dpy, void* drawable, void* ctx) {
|
|
|
|
glx.Load();
|
|
|
|
glx.Load();
|
|
|
|
SPDLOG_DEBUG("{}: {}, {}", __func__, drawable, ctx);
|
|
|
|
SPDLOG_DEBUG("{}: {}, {}", __func__, drawable, ctx);
|
|
|
|
int ret = 0;
|
|
|
|
int ret = glx.MakeCurrent(dpy, drawable, ctx);
|
|
|
|
// This is hack, proper fix should be implemented.
|
|
|
|
|
|
|
|
// MakeCurrent fails on the minecraft-launcher so we
|
|
|
|
|
|
|
|
// just bypass it and minecraft hooking works as it should
|
|
|
|
|
|
|
|
if (get_program_name() != "minecraft-launcher")
|
|
|
|
|
|
|
|
ret = glx.MakeCurrent(dpy, drawable, ctx);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_blacklisted()) {
|
|
|
|
if (!is_blacklisted()) {
|
|
|
|
if (ret) {
|
|
|
|
if (ret) {
|
|
|
|