gl-renderer: display_create needs surface type
In case the base EGLConfig is needed, gl_renderer_display_create() needs to know it should use EGL_WINDOW_BIT or EGL_PBUFFER_BIT. The PBUFFER case is added for when the headless backend will grow GL-renderer support. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
24756a8965
commit
411a7cfe67
@@ -2773,6 +2773,7 @@ wayland_backend_create(struct weston_compositor *compositor,
|
||||
if (gl_renderer->display_create(compositor,
|
||||
EGL_PLATFORM_WAYLAND_KHR,
|
||||
b->parent.wl_display,
|
||||
EGL_WINDOW_BIT,
|
||||
wayland_formats,
|
||||
ARRAY_LENGTH(wayland_formats)) < 0) {
|
||||
weston_log("Failed to initialize the GL renderer; "
|
||||
|
||||
Reference in New Issue
Block a user