aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;