summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/video.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-30 16:25:20 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-30 19:03:34 +0200
commiteb69e73eb449f1f63ff5b34520ced33e8ba5fb67 (patch)
tree403a6845f03243140b323d7c81358f85447106f9 /video/out/gpu/video.c
parent5597db7081b9420e0305c717435b18c71e72cb02 (diff)
downloadmpv-eb69e73eb449f1f63ff5b34520ced33e8ba5fb67.tar.bz2
mpv-eb69e73eb449f1f63ff5b34520ced33e8ba5fb67.tar.xz
vo_gpu: enable 3DLUTs in dumb mode
Unless FBOs are unsupported, this works. In particular, it's required to get ICC profiles working in voluntary dumb mode. So instead of blanket-disabling it, only disable it in the !have_fbo false case.
Diffstat (limited to 'video/out/gpu/video.c')
-rw-r--r--video/out/gpu/video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 8f56380789..63dd5586c8 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -3390,7 +3390,6 @@ static void check_gl_features(struct gl_video *p)
"Most extended features will be disabled.\n");
}
p->dumb_mode = true;
- p->use_lut_3d = false;
// Most things don't work, so whitelist all options that still work.
p->opts = (struct gl_video_opts){
.gamma = p->opts.gamma,
@@ -3411,9 +3410,12 @@ static void check_gl_features(struct gl_video *p)
.tone_mapping_param = p->opts.tone_mapping_param,
.tone_mapping_desat = p->opts.tone_mapping_desat,
.early_flush = p->opts.early_flush,
+ .icc_opts = p->opts.icc_opts,
};
for (int n = 0; n < SCALER_COUNT; n++)
p->opts.scaler[n] = gl_video_opts_def.scaler[n];
+ if (!have_fbo)
+ p->use_lut_3d = false;
return;
}
p->dumb_mode = false;