From eb69e73eb449f1f63ff5b34520ced33e8ba5fb67 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 30 Sep 2017 16:25:20 +0200 Subject: 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. --- video/out/gpu/video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out/gpu/video.c') 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; -- cgit v1.2.3