Do not require a valid drm plane to capture a window on amd/intel x11

This commit is contained in:
dec05eba
2024-06-10 12:28:53 +02:00
parent f8453bcaa4
commit 3f0a58a1e6
4 changed files with 7 additions and 8 deletions

View File

@@ -488,7 +488,6 @@ static bool gsr_egl_load_gl(gsr_egl *self, void *library) {
// }
bool gsr_egl_load(gsr_egl *self, Display *dpy, bool wayland, bool is_monitor_capture) {
(void)is_monitor_capture;
memset(self, 0, sizeof(gsr_egl));
self->x11.dpy = dpy;
self->context_type = GSR_GL_CONTEXT_TYPE_EGL;