summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-01 20:57:29 +0200
committerwm4 <wm4@nowhere>2015-10-01 20:57:29 +0200
commit98c4ab6d1329c95ec7454e80cc9a4d51ffab3c36 (patch)
tree40ee9d0e0a24ccb5dd4b36526d7f20f5a17518f3 /video/out/opengl/common.c
parent4a072059630fe7d57a5fbff97d7400cc83cafe4c (diff)
downloadmpv-98c4ab6d1329c95ec7454e80cc9a4d51ffab3c36.tar.bz2
mpv-98c4ab6d1329c95ec7454e80cc9a4d51ffab3c36.tar.xz
vo_opengl: make sw suboption work without explicit backend selection
You needed to select a GL backend with the backend suboption. This was confusing. Fixes #2361.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index 7fced42d01..879aa7d879 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -619,7 +619,7 @@ static MPGLContext *init_backend(struct vo *vo, const struct backend *backend,
if (ctx->gl->mpgl_caps & MPGL_CAP_SW) {
MP_WARN(ctx->vo, "Suspected software renderer or indirect context.\n");
- if (vo->probing)
+ if (vo->probing && !(vo_flags & VOFLAG_SW))
goto cleanup;
}