diff options
author | Niklas Haas <git@haasn.xyz> | 2016-07-25 12:32:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-25 12:50:11 +0200 |
commit | 46b60a3e72a0343611a204876522e36e7869b998 (patch) | |
tree | 9f39e567a2403f56d92b4dcc4bde1b0e3cb3b031 /video/out/opengl/lcms.c | |
parent | f127869037f50c1382424e89e0cba5ac3443c094 (diff) | |
download | mpv-46b60a3e72a0343611a204876522e36e7869b998.tar.bz2 mpv-46b60a3e72a0343611a204876522e36e7869b998.tar.xz |
vo_opengl: remove the 3dlut-size npot2 restriction
This requires changing the pixel upload alignment because the odd sizes
might not be aligned to multiples of 4.
Anyway, the restriction has no real benefit and the sizes in between 32
and 64 might be worth using, so just drop it.
Diffstat (limited to 'video/out/opengl/lcms.c')
-rw-r--r-- | video/out/opengl/lcms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/lcms.c b/video/out/opengl/lcms.c index 7cf2d42466..ec352cde05 100644 --- a/video/out/opengl/lcms.c +++ b/video/out/opengl/lcms.c @@ -59,7 +59,7 @@ static bool parse_3dlut_size(const char *arg, int *p1, int *p2, int *p3) return false; for (int n = 0; n < 3; n++) { int s = ((int[]) { *p1, *p2, *p3 })[n]; - if (s < 2 || s > 512 || ((s - 1) & s)) + if (s < 2 || s > 512) return false; } return true; |