From 8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Sep 2011 21:11:16 +0300 Subject: Fix compilation with different flags. --- src/compoundsprite.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compoundsprite.cpp') diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 99fae4f88..c6921b2e8 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -410,7 +410,11 @@ void CompoundSprite::setAlpha(float alpha) { if (alpha != mAlpha) { +#ifdef USE_OPENGL if (mEnableAlphaFix && Image::mUseOpenGL == 0 && size() > 3) +#else + if (mEnableAlphaFix && size() > 3) +#endif { SpriteConstIterator it, it_end; for (it = begin(), it_end = end(); it != it_end; ++ it) -- cgit v1.2.3-60-g2f50