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:
parent
8b77e2fb64
commit
3b7e929f73
@ -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);
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user