aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-15 06:40:11 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-15 06:40:11 +0200
commitc240cd111ede09cc34c30d88f06a18663f3ceec2 (patch)
treec6ffbb8a4515c634f8b82322812712c96c79b0f9 /src
parent01b8cdcb77d0821bd9af3a733329fdde5091fb24 (diff)
Debug output test
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index ecd221e..df2a17c 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -351,9 +351,17 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c
}
}
+ if(self->params.egl->eglGetError() != EGL_SUCCESS)
+ fprintf(stderr, "kms error 1\n");
self->params.egl->glBindTexture(GL_TEXTURE_2D, self->input_texture_id);
+ if(self->params.egl->eglGetError() != EGL_SUCCESS)
+ fprintf(stderr, "kms error 2\n");
self->params.egl->glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image);
+ if(self->params.egl->eglGetError() != EGL_SUCCESS)
+ fprintf(stderr, "kms error 3\n");
self->params.egl->eglDestroyImage(self->params.egl->egl_display, image);
+ if(self->params.egl->eglGetError() != EGL_SUCCESS)
+ fprintf(stderr, "kms error 4\n");
self->params.egl->glBindTexture(GL_TEXTURE_2D, 0);
vec2i capture_pos = self->capture_pos;