aboutsummaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-10-16 10:54:48 +0200
committerGravatar wm4 <wm4@nowhere>2017-10-16 11:00:02 +0200
commit54d14f5fa83b6324d73e612d1ff14207d335912d (patch)
tree2699da3b904e28e3b427e963628e7ceddd3119b2 /video
parent7cfae5adceed47122ced715c8b9cda0b87a1f1bf (diff)
vo_gpu: remove some minor dead code
This was for the "opengl" compat VO entry, which is now handled differently.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_gpu.c4
1 files changed, 1 insertions, 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);