Module: Demos Branch: master Commit: e1560771dc4a2522447777dccac0c88ddf930311 URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=e1560771dc4a2522447777dccac0c88ddf930311
Author: Kristian Høgsberg <[email protected]> Date: Wed Sep 11 14:55:47 2013 -0700 eglut_wayland: Set opaque region --- src/egl/eglut/eglut_wayland.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/egl/eglut/eglut_wayland.c b/src/egl/eglut/eglut_wayland.c index 25a51bc..968b33f 100644 --- a/src/egl/eglut/eglut_wayland.c +++ b/src/egl/eglut/eglut_wayland.c @@ -108,8 +108,15 @@ _eglutNativeInitWindow(struct eglut_window *win, const char *title, int x, int y, int w, int h) { struct wl_egl_window *native; + struct wl_region *region; window.surface = wl_compositor_create_surface(display.compositor); + + region = wl_compositor_create_region(display.compositor); + wl_region_add(region, 0, 0, w, h); + wl_surface_set_opaque_region(window.surface, region); + wl_region_destroy(region); + window.shell_surface = wl_shell_get_shell_surface(display.shell, window.surface); native = wl_egl_window_create(window.surface, w, h); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
