summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 00:50:45 +0300
commitaf374aa2b2944749193af49cdca28532cf56fae2 (patch)
treeb3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/resources/image.cpp
parent00cda69b883d6354f093be6ee39a7936cb798979 (diff)
downloadplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz
plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2
plus-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz
plus-af374aa2b2944749193af49cdca28532cf56fae2.zip
add renderer enum.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 1ed19629c..3d5d58620 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -244,7 +244,7 @@ bool Image::hasAlphaChannel() const
return mHasAlphaChannel;
#ifdef USE_OPENGL
- if (OpenGLImageHelper::mUseOpenGL)
+ if (OpenGLImageHelper::mUseOpenGL != RENDER_SOFTWARE)
return true;
#endif
@@ -413,7 +413,7 @@ Image *Image::getSubImage(const int x, const int y,
{
// Create a new clipped sub-image
#ifdef USE_OPENGL
- if (OpenGLImageHelper::mUseOpenGL)
+ if (OpenGLImageHelper::mUseOpenGL != RENDER_SOFTWARE)
{
return new SubImage(this, mGLImage, x, y, width, height,
mTexWidth, mTexHeight);