summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-19 17:13:03 -0500
committerDudemanguy <random342@airmail.cc>2023-09-22 14:20:38 +0000
commit58ac0dd6db87c6cdabff79f1cfba575f15f3328d (patch)
treeb78bed32bb00a70bf796433712b36df858ab1bc1
parenta9177201d4a6b02805cdda07530d375dcbade745 (diff)
downloadmpv-58ac0dd6db87c6cdabff79f1cfba575f15f3328d.tar.bz2
mpv-58ac0dd6db87c6cdabff79f1cfba575f15f3328d.tar.xz
libmpv_gl: replace mp_read_option_raw call
-rw-r--r--video/out/opengl/libmpv_gl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/video/out/opengl/libmpv_gl.c b/video/out/opengl/libmpv_gl.c
index c2cc10d43b..c297c138bb 100644
--- a/video/out/opengl/libmpv_gl.c
+++ b/video/out/opengl/libmpv_gl.c
@@ -54,11 +54,11 @@ static int init(struct libmpv_gpu_context *ctx, mpv_render_param *params)
if (!ra_gl_ctx_init(p->ra_ctx, p->gl, gl_params))
return MPV_ERROR_UNSUPPORTED;
- bool debug;
- mp_read_option_raw(ctx->global, "gpu-debug", &m_option_type_bool, &debug);
- p->ra_ctx->opts.debug = debug;
- p->gl->debug_context = debug;
- ra_gl_set_debug(p->ra_ctx->ra, debug);
+ struct ra_ctx_opts *ctx_opts = mp_get_config_group(ctx, ctx->global, &ra_ctx_conf);
+ p->ra_ctx->opts.debug = ctx_opts->debug;
+ p->gl->debug_context = ctx_opts->debug;
+ ra_gl_set_debug(p->ra_ctx->ra, ctx_opts->debug);
+ talloc_free(ctx_opts);
ctx->ra_ctx = p->ra_ctx;