diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 04:32:50 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch) | |
tree | 448b141d92c9ea7636954213b587aaf380fc21db /video/out/opengl/libmpv_gl.c | |
parent | b9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff) | |
download | mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.bz2 mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.xz |
options: transition options from OPT_FLAG to OPT_BOOL
c78482045444c488bb7948305d583a55d17cd236 introduced a bool option type
as a replacement for the flag type, but didn't actually transition and
remove the flag type because it would have been too much mundane work.
Diffstat (limited to 'video/out/opengl/libmpv_gl.c')
-rw-r--r-- | video/out/opengl/libmpv_gl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/opengl/libmpv_gl.c b/video/out/opengl/libmpv_gl.c index e916a3c45d..1dcb21231a 100644 --- a/video/out/opengl/libmpv_gl.c +++ b/video/out/opengl/libmpv_gl.c @@ -36,7 +36,6 @@ static int init(struct libmpv_gpu_context *ctx, mpv_render_param *params) p->ra_ctx->log = ctx->log; p->ra_ctx->global = ctx->global; p->ra_ctx->opts = (struct ra_ctx_opts) { - .probing = false, .allow_sw = true, }; @@ -55,8 +54,8 @@ 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; - int debug; - mp_read_option_raw(ctx->global, "gpu-debug", &m_option_type_flag, &debug); + 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); |