aboutsummaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-19 00:42:33 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-26 13:49:20 +0100
commitc1048a3d20b75740d7c25915963cefe27fae53d4 (patch)
treea8934668ce751781b03d63e0ae3fa0449b8fb69e /src/egl.c
parenta006261adef704930a8d946806ba051178a14518 (diff)
Make '-w screen' capture the first monitor on nvidia x11 as well to make it work like amd, intel and nvidia wayland. Keep screen-direct for all monitors, that is gsync compatible
Diffstat (limited to 'src/egl.c')
-rw-r--r--src/egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl.c b/src/egl.c
index 20537a2..249fe53 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -377,7 +377,7 @@ bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture) {
self->glx_library = dlopen("libGLX.so.0", RTLD_LAZY);
self->gl_library = dlopen("libGL.so.1", RTLD_LAZY);
- if(!self->egl_library) {
+ if(!self->gl_library) {
fprintf(stderr, "gsr error: gsr_egl_load: failed to load libGL.so.1, error: %s\n", dlerror());
goto fail;
}