projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2412e2
)
Fall back to solid color background if not image is found.
author
Kristian Høgsberg
<krh@redhat.com>
Thu, 18 Dec 2008 17:08:19 +0000
(12:08 -0500)
committer
Kristian Høgsberg
<krh@redhat.com>
Thu, 18 Dec 2008 17:10:37 +0000
(12:10 -0500)
egl-compositor.c
patch
|
blob
|
history
diff --git
a/egl-compositor.c
b/egl-compositor.c
index
2cf9ec1
..
ef05235
100644
(file)
--- a/
egl-compositor.c
+++ b/
egl-compositor.c
@@
-481,7
+481,10
@@
repaint(void *data)
return;
}
- draw_surface(ec->background);
+ if (ec->background)
+ draw_surface(ec->background);
+ else
+ glClear(GL_COLOR_BUFFER_BIT);
es = container_of(ec->surface_list.next,
struct egl_surface, link);
@@
-1027,6
+1030,7
@@
egl_compositor_create(struct wl_display *display)
glLoadIdentity();
glOrtho(0, ec->width, ec->height, 0, 0, 1000.0);
glMatrixMode(GL_MODELVIEW);
+ glClearColor(0, 0, 0.2, 1);
wl_display_set_compositor(display, &ec->base, &compositor_interface);