summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-27 13:40:59 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-04 13:53:14 +0200
commit62f0677614ead1b094ac97b3ea1756541dcda03c (patch)
treed0a50dd78a7524c776f4d1a734e6f0e0251b2cdd /video/out/opengl/video.c
parent8cf5799ab1e1cb2de22636eadf3119a319161aec (diff)
downloadmpv-62f0677614ead1b094ac97b3ea1756541dcda03c.tar.bz2
mpv-62f0677614ead1b094ac97b3ea1756541dcda03c.tar.xz
vo_opengl: use rgba16 for 3DLUTs instead of rgb16
Vulkan compat. rgb16 doesn't exist on hardware anyway, might as well just generate the 3DLUT against rgba16 as well. We've decided this is the simplest way to do vulkan compatibility: just make sure we never actually need 3-component textures.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 09b05fd688..1378872838 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -569,10 +569,10 @@ static bool gl_video_get_lut3d(struct gl_video *p, enum mp_csp_prim prim,
// GLES3 doesn't provide filtered 16 bit integer textures
// GLES2 doesn't even provide 3D textures
- const struct ra_format *fmt = ra_find_unorm_format(p->ra, 2, 3);
+ const struct ra_format *fmt = ra_find_unorm_format(p->ra, 2, 4);
if (!fmt || !(p->ra->caps & RA_CAP_TEX_3D)) {
p->use_lut_3d = false;
- MP_WARN(p, "Disabling color management (no RGB16 3D textures).\n");
+ MP_WARN(p, "Disabling color management (no RGBA16 3D textures).\n");
return false;
}