From d273e28567c6b1784b729284868951bc104ae76f Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sat, 17 Mar 2012 13:43:52 -0700 Subject: [PATCH] weston: Don't ask for EGL depth buffer if not needed This makes the compositor and demo clients work on the current nouveau nvfx driver. Obviously does not fix any clients that actually want a depth buffer, but this does allow more people to at least try wayland. --- clients/simple-egl.c | 1 - src/compositor-wayland.c | 1 - src/compositor-x11.c | 1 - 3 files changed, 3 deletions(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 9893a82..c0e2855 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -100,7 +100,6 @@ init_egl(struct display *display) EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, EGL_ALPHA_SIZE, 1, - EGL_DEPTH_SIZE, 1, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE }; diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index b4c55a8..1baf55e 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -267,7 +267,6 @@ wayland_compositor_init_egl(struct wayland_compositor *c) EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, EGL_ALPHA_SIZE, 1, - EGL_DEPTH_SIZE, 1, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE }; diff --git a/src/compositor-x11.c b/src/compositor-x11.c index c3eaab7..0b7da9b 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -123,7 +123,6 @@ x11_compositor_init_egl(struct x11_compositor *c) EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, - EGL_DEPTH_SIZE, 1, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE }; -- 2.7.4