diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-01 00:50:45 +0300 |
commit | af374aa2b2944749193af49cdca28532cf56fae2 (patch) | |
tree | b3e4fd2609a00175dbd94e42ab3d72984b4a051b /src/being | |
parent | 00cda69b883d6354f093be6ee39a7936cb798979 (diff) | |
download | manaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.gz manaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.bz2 manaplus-af374aa2b2944749193af49cdca28532cf56fae2.tar.xz manaplus-af374aa2b2944749193af49cdca28532cf56fae2.zip |
add renderer enum.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/compoundsprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 68a0d42e3..914afd1fe 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -398,7 +398,7 @@ void CompoundSprite::setAlpha(float alpha) if (alpha != mAlpha) { #ifdef USE_OPENGL - if (mEnableAlphaFix && imageHelper->useOpenGL() == 0 + if (mEnableAlphaFix && imageHelper->useOpenGL() == RENDER_SOFTWARE && size() > 3) #else if (mEnableAlphaFix && size() > 3) @@ -418,7 +418,7 @@ void CompoundSprite::updateImages() const { #ifndef USE_SDL2 #ifdef USE_OPENGL - if (imageHelper->useOpenGL()) + if (imageHelper->useOpenGL() != RENDER_SOFTWARE) return; #endif |