diff options
author | Jan Ekström <jeebjp@gmail.com> | 2018-05-01 18:01:07 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-01 19:24:53 +0300 |
commit | 11f915f5ef7d622a225bee6ab98ee6a9da34991f (patch) | |
tree | 72ba6a1214815bf0be246b82b08d7e4e67563161 | |
parent | df65ac95baa8f1fa63fac89bd803368a3bf69e24 (diff) | |
download | mpv-11f915f5ef7d622a225bee6ab98ee6a9da34991f.tar.bz2 mpv-11f915f5ef7d622a225bee6ab98ee6a9da34991f.tar.xz |
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.
-rw-r--r-- | video/out/gpu/video.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |