mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:36:17 +02:00
Log surface load failures at DEBUG level instead of ERROR
Since we no longer check file existance before attempting a load, load failures are often not errors. For example a missing preview image is harmless.
This commit is contained in:
parent
d16cb902b3
commit
ffb736d80f
@ -295,7 +295,7 @@ unique_ptr<OffscreenSurface> OffscreenSurface::loadImage(
|
||||
{
|
||||
SDL_Surface *raw = loadPNG(img, loadAlpha);
|
||||
if (!raw) {
|
||||
ERROR("Couldn't load surface '%s'\n", img.c_str());
|
||||
DEBUG("Couldn't load surface '%s'\n", img.c_str());
|
||||
return unique_ptr<OffscreenSurface>();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user