1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed yet another warning

This commit is contained in:
Zeno Rogue 2019-09-13 20:23:43 +02:00
parent 8b77e2fb64
commit 3b7e929f73

View File

@ -569,6 +569,9 @@ void switch_mode(eMode m, shader_projection sp) {
})
}
if(newflags & GF_LIGHTFOG) {
#ifdef GLES_ONLY
#define glFogi glFogx
#endif
WITHSHADER({}, {
/*GLfloat light_ambient[] = { 3.5, 3.5, 3.5, 1.0 };
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
@ -585,11 +588,7 @@ void switch_mode(eMode m, shader_projection sp) {
glEnable(GL_LIGHT0); */
glEnable(GL_FOG);
#ifdef GLES_ONLY
glFogx(GL_FOG_MODE, GL_LINEAR);
#else
glFogi(GL_FOG_MODE, GL_LINEAR);
#endif
glFogf(GL_FOG_START, 0);
})
}