summary refs log tree commit diff stats
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-02-14 19:15:09 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-03-13 22:57:39 +0400
commit8bb6af6792f50a43807b152e1221e2ac9177f6c4 (patch)
tree7f959f56c4daf7ee1737917a1f7577541ea8822c /ui
parent284c52eec2d0a1b9c47f06c3eee46762c5fc0915 (diff)
downloadfocaccia-qemu-8bb6af6792f50a43807b152e1221e2ac9177f6c4.tar.gz
focaccia-qemu-8bb6af6792f50a43807b152e1221e2ac9177f6c4.zip
ui/dbus: initialize cursor_fb
Or else, we may randomly destroy some textures..

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/dbus-listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index 57d4e401db..2dafd6569c 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -149,7 +149,7 @@ static void dbus_cursor_dmabuf(DisplayChangeListener *dcl,
     DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);
     DisplaySurface *ds;
     GVariant *v_data = NULL;
-    egl_fb cursor_fb;
+    egl_fb cursor_fb = EGL_FB_INIT;
 
     if (!dmabuf) {
         qemu_dbus_display1_listener_call_mouse_set(