blob: 1e90126991c95b59b4c91ef44059414b239420af [file] [log] [blame]
Andrew Geissler26e4bea2020-11-30 19:54:03 -06001From 5c0fb637f8b1286da19b904c7be1692a4aa61244 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:11:41 -0800
Andrew Geissler26e4bea2020-11-30 19:54:03 -06004Subject: [PATCH] initialize front back wayland buffers
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6origins from metrological wayland support
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
Patrick Williams520786c2023-06-25 16:20:36 -050010Upstream-Status: Pending
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 interface/khronos/egl/egl_client_surface.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/interface/khronos/egl/egl_client_surface.c b/interface/khronos/egl/egl_client_surface.c
16index 1f923d9..9a9582c 100644
17--- a/interface/khronos/egl/egl_client_surface.c
18+++ b/interface/khronos/egl/egl_client_surface.c
19@@ -401,11 +401,14 @@ EGL_SURFACE_T *egl_surface_create(
20 #ifdef BUILD_WAYLAND
21 if (type == WINDOW && wl_display) {
22 surface->wl_egl_window = (struct wl_egl_window*)win;
23+ surface->front_wl_buffer = NULL;
24 surface->back_wl_buffer = allocate_wl_buffer(
25 surface->wl_egl_window, color);
26 resource = surface->back_wl_buffer->resource;
27 } else {
28 surface->wl_egl_window = NULL;
29+ surface->front_wl_buffer = NULL;
30+ surface->back_wl_buffer = NULL;
31 resource = DISPMANX_NO_HANDLE;
32 }
33 #endif