summaryrefslogtreecommitdiff
path: root/src/resources/image/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-11 20:17:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-11 20:17:33 +0300
commit68b46aefd714bb65a588157d6dba9de9f5f5ba4a (patch)
treefe9e1b661fb81c870ba8a34cc3ff3dc3695795ae /src/resources/image/image.cpp
parent3fbf1226888aa6b8cafcf05d06d3016b1aa058f4 (diff)
downloadplus-68b46aefd714bb65a588157d6dba9de9f5f5ba4a.tar.gz
plus-68b46aefd714bb65a588157d6dba9de9f5f5ba4a.tar.bz2
plus-68b46aefd714bb65a588157d6dba9de9f5f5ba4a.tar.xz
plus-68b46aefd714bb65a588157d6dba9de9f5f5ba4a.zip
Remove error messages from log if image loaded without image data.
Diffstat (limited to 'src/resources/image/image.cpp')
-rw-r--r--src/resources/image/image.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/resources/image/image.cpp b/src/resources/image/image.cpp
index fe21631e6..bb3fe6ce6 100644
--- a/src/resources/image/image.cpp
+++ b/src/resources/image/image.cpp
@@ -82,8 +82,6 @@ Image::Image(SDL_Texture *restrict const image,
}
else
{
- logger->log("Image::Image(SDL_Texture *const image):"
- " Couldn't load invalid Surface!");
mBounds.w = 0;
mBounds.h = 0;
}
@@ -128,8 +126,6 @@ Image::Image(SDL_Surface *restrict const image, const bool hasAlphaChannel0,
}
else
{
- logger->log(
- "Image::Image(SDL_Surface*): Couldn't load invalid Surface!");
mBounds.w = 0;
mBounds.h = 0;
}
@@ -169,11 +165,6 @@ Image::Image(const GLuint glimage, const int width, const int height,
{
mLoaded = true;
}
- else
- {
- logger->log("Image::Image(GLuint*, ...):"
- " Couldn't load invalid Surface!");
- }
}
#endif