From bb07b22d4248492c859d2e4c0d2ff2941db1db86 Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Sun, 18 Feb 2018 23:51:10 +0100 Subject: egl_helpers: mpegl_cb can now signal an error condition This can be used by client code that needs to fail when it cannot find a suitable EGLConfig. --- video/out/opengl/egl_helpers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/egl_helpers.h') diff --git a/video/out/opengl/egl_helpers.h b/video/out/opengl/egl_helpers.h index eaaf9d7a48..df489daf0c 100644 --- a/video/out/opengl/egl_helpers.h +++ b/video/out/opengl/egl_helpers.h @@ -15,7 +15,9 @@ bool mpegl_create_context(struct ra_ctx *ctx, EGLDisplay display, struct mpegl_cb { // if set, pick the desired config from the given list and return its index - // defaults to 0 (they are sorted by eglChooseConfig) + // defaults to 0 (they are sorted by eglChooseConfig). return a negative + // number to indicate an error condition or that no suitable configs could + // be found. int (*refine_config)(void *user_data, EGLConfig *configs, int num_configs); void *user_data; }; -- cgit v1.2.3