summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/libmpv_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/libmpv_gl.c')
-rw-r--r--video/out/opengl/libmpv_gl.c5
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);