2007-11-21 Matthew Allum <mallum@openedhand.com>

* clutter/cogl/gles/cogl.c: (cogl_fog_set):
        Minor fixes for fog on GLES.
This commit is contained in:
Matthew Allum 2007-11-21 12:30:50 +00:00
parent 99acb8e9c1
commit 24d43aee02
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-11-21 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gles/cogl.c: (cogl_fog_set):
Minor fixes for fog on GLES.
2007-11-21 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/cogl/cogl.h: Add cogl_fog_set() abstracting the

View File

@ -623,10 +623,10 @@ cogl_fog_set (const ClutterColor *fog_color,
glFogxv (GL_FOG_COLOR, fogColor);
glFogi (GL_FOG_MODE, GL_LINEAR);
glFogx (GL_FOG_MODE, GL_LINEAR);
glHint (GL_FOG_HINT, GL_NICEST);
glFogx (GL_FOG_DENSITY, (GLfixed) density);
glFogx (GL_FOG_START, (GLfixed) z_near);
glFogx (GL_FOG_STOP, (GLfixed) z_far);
glFogx (GL_FOG_END, (GLfixed) z_far);
}