1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

Error handling in GL2D::makeShaderProgram,

Gfx::PlettedBitmap class correction
This commit is contained in:
paracelsus
2013-03-04 19:43:38 +00:00
parent 672cf5bcb5
commit d96e7cae4a
6 changed files with 75 additions and 62 deletions

View File

@ -50,7 +50,7 @@ PImage CManager::getImage(const std::string& fname)
if (img_tmp == nullptr)
{
tlog1 << "Image " << fname << " not loaded!\n";
tlog1 << "Gfx: Image " << fname << " not loaded!\n";
return nullptr;
}
}
@ -80,7 +80,7 @@ PAnimation CManager::getAnimation(const std::string& fname)
CAnimation* anim_tmp = CAnimation::makeFromDEF(*(SH3DefFile*)data.get(), (size_t)readSize);
if (anim_tmp == nullptr)
{
tlog1 << "Animation " << fname << " not loaded!\n";
tlog1 << "Gfx: Animation " << fname << " not loaded!\n";
return nullptr;
}