mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
2007-11-08 Rob Bradford <rob@openedhand.com>
* clutter/cogl/gles/cogl.c: (cogl_color): Switch over to using glColor4ub in the GLES backend. It's available in the header file but missing in the reference manual.
This commit is contained in:
parent
72ce4487f8
commit
6997c45f84
@ -1,3 +1,9 @@
|
|||||||
|
2007-11-08 Rob Bradford <rob@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/cogl/gles/cogl.c: (cogl_color):
|
||||||
|
Switch over to using glColor4ub in the GLES backend. It's available in
|
||||||
|
the header file but missing in the reference manual.
|
||||||
|
|
||||||
2007-11-07 Emmanuele Bassi <ebassi@openedhand.com>
|
2007-11-07 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-actor.[ch]: Fix the declaration of the
|
* clutter/clutter-actor.[ch]: Fix the declaration of the
|
||||||
|
@ -239,10 +239,16 @@ cogl_enable (gulong flags)
|
|||||||
void
|
void
|
||||||
cogl_color (const ClutterColor *color)
|
cogl_color (const ClutterColor *color)
|
||||||
{
|
{
|
||||||
GE( glColor4x ((color->red << 16) / 0xff,
|
/*
|
||||||
(color->green << 16) / 0xff,
|
* GLES 1.1 does actually have this function, it's in the header file but
|
||||||
(color->blue << 16) / 0xff,
|
* missing in the reference manual:
|
||||||
(color->alpha << 16) / 0xff) );
|
*
|
||||||
|
* http://www.khronos.org/egl/headers/1_1/gl.h
|
||||||
|
*/
|
||||||
|
GE( glColor4ub (color->red,
|
||||||
|
color->green,
|
||||||
|
color->blue,
|
||||||
|
color->alpha) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user