Revert "Utility/Formats: STBLoader will now convert the image to RGB8 if it has no alpha value"
This reverts commit c523e3cde5.
This commit is contained in:
parent
3bd426f3dc
commit
2d13ff7aac
|
|
@ -82,12 +82,6 @@ namespace Nz
|
||||||
|
|
||||||
if (parameters.loadFormat != PixelFormatType_Undefined)
|
if (parameters.loadFormat != PixelFormatType_Undefined)
|
||||||
image->Convert(parameters.loadFormat);
|
image->Convert(parameters.loadFormat);
|
||||||
else
|
|
||||||
{
|
|
||||||
// Optimize memory usage if possible
|
|
||||||
if (!image->HasAlpha())
|
|
||||||
image->Convert(PixelFormatType_RGB8);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue