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