mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Log output improvement for TextureData.
This commit is contained in:
parent
f212a85b23
commit
b0bd77eb7f
|
@ -121,9 +121,9 @@ bool TextureData::initImageFromMemory(const unsigned char* fileData, size_t leng
|
|||
static_cast<const unsigned char*>(fileData), length, width, height);
|
||||
|
||||
if (imageRGBA.size() == 0) {
|
||||
LOG(LogError) << "Could not initialize texture from memory, invalid data! (file path: "
|
||||
<< mPath << ", data ptr: " << reinterpret_cast<size_t>(fileData) <<
|
||||
", reported size: " << length << ")";
|
||||
LOG(LogError) << "Couldn't initialize texture from memory, invalid data (" <<
|
||||
(mPath != "" ? "file path: " + mPath + ", " : "") << "data ptr: " <<
|
||||
reinterpret_cast<size_t>(fileData) << ", reported size: " << length << ")";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue