[clutter/fosdem-2012] wayland: Constraint the cogl renderer to be egl based



commit 37a52fabebfe07511cd06e858cbe1411eed73eb1
Author: Robert Bragg <robert linux intel com>
Date:   Wed Jan 18 19:55:46 2012 +0000

    wayland: Constraint the cogl renderer to be egl based
    
    This uses cogl_renderer_add_constraint() to ensure that when we are
    using the wayland backend that Cogl selects an EGL based renderer
    backend.

 clutter/wayland/clutter-backend-wayland.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c
index 8aa51b2..540976f 100644
--- a/clutter/wayland/clutter-backend-wayland.c
+++ b/clutter/wayland/clutter-backend-wayland.c
@@ -163,6 +163,8 @@ clutter_backend_wayland_get_renderer (ClutterBackend  *backend,
   cogl_wayland_renderer_set_foreign_shell (renderer,
                                            backend_wayland->wayland_shell);
 
+  cogl_renderer_add_constraint (renderer, COGL_RENDERER_CONSTRAINT_USES_EGL);
+
   return renderer;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]