summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-02-01 12:52:51 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-02-01 12:53:45 +0100
commitaa3574faebf51790d3861050d881b55b85c67660 (patch)
tree85b22c84c8e6e1d31ae3dc921ea6062473c0dc96
parentf7ce9622253ce7f4721fb2f51cabeb123101f3a6 (diff)
egl-wayland-surface: Add visual to ceate_native_surface
-rw-r--r--egl-wayland-surface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/egl-wayland-surface.c b/egl-wayland-surface.c
index 8ea2002..f4732a3 100644
--- a/egl-wayland-surface.c
+++ b/egl-wayland-surface.c
@@ -71,10 +71,13 @@ init_egl(struct display *display)
static void
create_egl_surface(struct display *display, struct window *window)
{
-
+ struct wl_visual *visual;
+
+ visual = wl_display_get_premultiplied_argb_visual(display->display);
window->egl_surface = wl_egl_create_native_surface(window->surface,
window->width,
- window->height);
+ window->height,
+ visual);
printf("surface: %p\n", window->surface);
window->egl.surf =