-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obs-glcapture Fails to Capture #16
Comments
Do you have DRI3 enabled?
|
yep
|
diff --git a/src/glinject.c b/src/glinject.c
index 7bdc8f8..abedc57 100644
--- a/src/glinject.c
+++ b/src/glinject.c
@@ -28,6 +28,8 @@ with this program. If not, see <https://www.gnu.org/licenses/>
#include <unistd.h>
#include <stdlib.h>
+#include <xcb/xcb.h>
+
static bool gl_seen = false;
static bool gl_loaded = false;
static struct egl_funcs egl_f;
@@ -313,8 +315,10 @@ static bool gl_shtex_init()
glx_f.BindTexImageEXT(data.display, data.glxpixmap, P_GLX_FRONT_LEFT_EXT, NULL);
void *cookie = x11_f.xcb_dri3_buffer_from_pixmap(data.xcb_con, data.xpixmap);
- P_xcb_dri3_buffer_from_pixmap_reply_t *reply = x11_f.xcb_dri3_buffer_from_pixmap_reply(data.xcb_con, cookie, NULL);
+ xcb_generic_error_t *err;
+ P_xcb_dri3_buffer_from_pixmap_reply_t *reply = x11_f.xcb_dri3_buffer_from_pixmap_reply(data.xcb_con, cookie, &err);
if (!reply) {
+ hlog("error: %d", err->error_code);
hlog("Failed to get buffer from pixmap");
return false;
} Can you post output with this patch applied? |
The output is
|
I'm not really sure how to debug this, but just to make sure: Does it work with EGL ( |
Ok I actually got hit by this, when running on XWayland. Any chance it was on XWayland in your case too? |
Not supported on XWayland: |
When trying to use obs-glcapture to capture anything (including glxgears) I just get this output:
This is on an amd vega card with the latest mesa and amdgpu drivers
The text was updated successfully, but these errors were encountered: