mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 05:55:35 +00:00
Remove some compiler cruft with our TGA loader.
This commit is contained in:
parent
e780560d1e
commit
325b04847e
|
@ -61,10 +61,6 @@
|
|||
|
||||
#include "targa.h"
|
||||
|
||||
static void ReportError(const char *msg) {
|
||||
fprintf(stderr, "ERROR: ImageLoaderTGA -- %s\n", msg);
|
||||
}
|
||||
|
||||
ImageLoaderTGA::ImageLoaderTGA(const uint8 *rawData, const int32 rawDataSz)
|
||||
: ImageLoader(rawData, rawDataSz)
|
||||
{ }
|
||||
|
@ -78,7 +74,7 @@ bool ImageLoaderTGA::ReadData() {
|
|||
m_Width = tga.width;
|
||||
m_Height = tga.height;
|
||||
|
||||
assert(tga.imagelength == m_Width * m_Height * 4);
|
||||
assert(static_cast<uint32>(tga.imageLength) == m_Width * m_Height * 4);
|
||||
|
||||
return LoadFromPixelBuffer(reinterpret_cast<uint32 *>(tga.image));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue