From ca363d3ef805a39fe4e821813b1efa53b2c9c805 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 25 Jul 2019 00:01:25 +0200 Subject: Unify OpenGL ES support --- src/client/sky.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/sky.cpp') 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++) { -- cgit v1.2.3