projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cb337
)
[cogl_clear] Also pass the alpha component of the CoglColor to glClearColor
author
Robert Bragg
<robert@linux.intel.com>
Tue, 11 Aug 2009 12:49:12 +0000
(13:49 +0100)
committer
Robert Bragg
<robert@linux.intel.com>
Tue, 11 Aug 2009 13:15:44 +0000
(14:15 +0100)
Previously we were passing a constant of 0.0 for the alpha component which
wasn't as flexible.
clutter/cogl/common/cogl.c
patch
|
blob
|
history
diff --git
a/clutter/cogl/common/cogl.c
b/clutter/cogl/common/cogl.c
index
bfd2aac
..
2c74b53
100644
(file)
--- a/
clutter/cogl/common/cogl.c
+++ b/
clutter/cogl/common/cogl.c
@@
-102,7
+102,7
@@
cogl_clear (const CoglColor *color, gulong buffers)
GE( glClearColor (cogl_color_get_red_float (color),
cogl_color_get_green_float (color),
cogl_color_get_blue_float (color),
-
0.0
) );
+
cogl_color_get_alpha_float (color)
) );
gl_buffers |= GL_COLOR_BUFFER_BIT;
}