Wrong clipping when using the new v2 and v4 profiles, fixes #5142

This commit is contained in:
heckflosse
2019-01-19 19:10:46 +01:00
parent 52aabfc93a
commit 4d241d7e10
2 changed files with 0 additions and 10 deletions

View File

@@ -143,9 +143,6 @@ void Imagefloat::getScanline (int row, unsigned char* buffer, int bps, bool isFl
float ri = r(row, i);
float gi = g(row, i);
float bi = b(row, i);
if (ri > 65535.f || gi > 65535.f || bi > 65535.f) {
filmlike_clip(&ri, &gi, &bi);
}
if (bps == 16) {
sbuffer[ix++] = CLIP(ri);
sbuffer[ix++] = CLIP(gi);