Fix depth sanity test in PixelFormat
This commit is contained in:
committed by
Lauri Kasanen
parent
1224cbdc21
commit
9f7abaea3a
@@ -678,7 +678,7 @@ bool PixelFormat::isSane(void)
|
||||
return false;
|
||||
|
||||
totalBits = bits(redMax) + bits(greenMax) + bits(blueMax);
|
||||
if (totalBits > bpp)
|
||||
if (totalBits > depth)
|
||||
return false;
|
||||
|
||||
if (((redMax << redShift) & (greenMax << greenShift)) != 0)
|
||||
|
||||
Reference in New Issue
Block a user