From 11f915f5ef7d622a225bee6ab98ee6a9da34991f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Tue, 1 May 2018 18:01:07 +0300 Subject: vo_gpu/video: disable compute shaders if an FBO format was not available This is actually more generic and better than just lazily plastering peak calculation together with dumb mode. --- video/out/gpu/video.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index a725f939f5..3fb460469d 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3561,6 +3561,11 @@ static void check_gl_features(struct gl_video *p) // Verbose, since this is the default setting MP_VERBOSE(p, "Disabling alpha checkerboard (no gl_FragCoord).\n"); } + if (!have_fbo && have_compute) { + have_compute = false; + MP_WARN(p, "Force-disabling compute shaders as an FBO format was not " + "available! See your FBO format configuration!\n"); + } bool have_compute_peak = have_compute && have_ssbo; if (!have_compute_peak && p->opts.compute_hdr_peak >= 0) { -- cgit v1.2.3