vo_gpu: remove some minor dead code

This was for the "opengl" compat VO entry, which is now handled
differently.
This commit is contained in:
wm4 2017-10-16 10:54:48 +02:00
parent 7cfae5adce
commit 54d14f5fa8
1 changed files with 1 additions and 3 deletions

View File

@ -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);