Utility/PixelFormat: Reject formats with over 64 bpp per component

This commit is contained in:
Lynix 2016-11-17 23:01:38 +01:00
parent d9774f30a3
commit e76ef3902e
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ namespace Nz
if (usedBits > bitsPerPixel) if (usedBits > bitsPerPixel)
return false; return false;
if (usedBits > 64) //< Currently, formats with over 64 bits per component are not supported
return false;
switch (types[i]) switch (types[i])
{ {
case PixelFormatSubType_Half: case PixelFormatSubType_Half: