diff options
Diffstat (limited to 'src/client/sky.cpp')
-rw-r--r-- | src/client/sky.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/sky.cpp b/src/client/sky.cpp index 9d0957450..346cd0642 100644 --- a/src/client/sky.cpp +++ b/src/client/sky.cpp @@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "client/renderingengine.h" #include "settings.h" #include "camera.h" // CameraModes +#include "config.h" Sky::Sky(s32 id, ITextureSource *tsrc): @@ -44,7 +45,7 @@ Sky::Sky(s32 id, ITextureSource *tsrc): video::SMaterial mat; mat.Lighting = false; -#ifdef __ANDROID__ +#if ENABLE_GLES mat.ZBuffer = video::ECFN_DISABLED; #else mat.ZBuffer = video::ECFN_NEVER; @@ -273,7 +274,7 @@ void Sky::render() // Stars are only drawn when brighter than skycolor if (starcolor.getBlue() < m_skycolor.getBlue()) break; -#ifdef __ANDROID__ +#if ENABLE_GLES u16 indices[SKY_STAR_COUNT * 3]; video::S3DVertex vertices[SKY_STAR_COUNT * 3]; for (u32 i = 0; i < SKY_STAR_COUNT; i++) { |