From af374aa2b2944749193af49cdca28532cf56fae2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Sep 2013 00:50:45 +0300 Subject: add renderer enum. --- src/being/compoundsprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being/compoundsprite.cpp') 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 -- cgit v1.2.3-70-g09d2