summaryrefslogtreecommitdiff
path: root/src/client/sky.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-07-25 00:01:25 +0200
committersfan5 <sfan5@live.de>2019-08-04 16:12:52 +0200
commitca363d3ef805a39fe4e821813b1efa53b2c9c805 (patch)
tree20ed44b34cdbd66b53d7c0c8e7275f134276811f /src/client/sky.cpp
parent526a9e4b66abaf83eb6b1aaa3e93375acd87b830 (diff)
downloadminetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.tar.gz
minetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.tar.bz2
minetest-ca363d3ef805a39fe4e821813b1efa53b2c9c805.zip
Unify OpenGL ES support
Diffstat (limited to 'src/client/sky.cpp')
-rw-r--r--src/client/sky.cpp5
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++) {