[PATCH 2/2] Don't ask for EGL depth buffer if not needed
spitzak at gmail.com
spitzak at gmail.com
Sun Mar 18 21:46:12 PDT 2012
From: Bill Spitzak <spitzak at lulu.(none)>
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 -
clients/window.c | 1 -
src/compositor-wayland.c | 1 -
src/compositor-x11.c | 1 -
4 files changed, 0 insertions(+), 4 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/clients/window.c b/clients/window.c
index 9058e4e..fc89894 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2766,7 +2766,6 @@ init_egl(struct display *d)
EGL_GREEN_SIZE, 1,
EGL_BLUE_SIZE, 1,
EGL_ALPHA_SIZE, 1,
- EGL_DEPTH_SIZE, 1,
EGL_RENDERABLE_TYPE, GL_BIT,
EGL_NONE
};
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 48358e3..423968f 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -263,7 +263,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
};
--
1.7.4.1
More information about the wayland-devel
mailing list