From 54d14f5fa83b6324d73e612d1ff14207d335912d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Oct 2017 10:54:48 +0200 Subject: vo_gpu: remove some minor dead code This was for the "opengl" compat VO entry, which is now handled differently. --- video/out/vo_gpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index f4342813d3..0a0541aabb 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -47,7 +47,6 @@ struct gpu_priv { struct mp_log *log; struct ra_ctx *ctx; - bool force_gl; // for vo=opengl back-compat char *context_name; char *context_type; struct ra_ctx_opts opts; @@ -289,8 +288,7 @@ static int preinit(struct vo *vo) struct ra_ctx_opts opts = p->opts; opts.want_alpha = alpha_mode == 1; - const char *type = p->force_gl ? "opengl" : p->context_type; - p->ctx = ra_ctx_create(vo, type, p->context_name, opts); + p->ctx = ra_ctx_create(vo, p->context_type, p->context_name, opts); if (!p->ctx) goto err_out; assert(p->ctx->ra); -- cgit v1.2.3