aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent284c52eec2d0a1b9c47f06c3eee46762c5fc0915 (diff)
downloadqemu-8bb6af6792f50a43807b152e1221e2ac9177f6c4.zip
qemu-8bb6af6792f50a43807b152e1221e2ac9177f6c4.tar.gz
qemu-8bb6af6792f50a43807b152e1221e2ac9177f6c4.tar.bz2
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 'include')
-rw-r--r--include/ui/egl-helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 2fb6e0d..c92dd90 100644
--- a/include/ui/egl-helpers.h
+++ b/include/ui/egl-helpers.h
@@ -22,6 +22,8 @@ typedef struct egl_fb {
QemuDmaBuf *dmabuf;
} egl_fb;
+#define EGL_FB_INIT { 0, }
+
void egl_fb_destroy(egl_fb *fb);
void egl_fb_setup_default(egl_fb *fb, int width, int height);
void egl_fb_setup_for_tex(egl_fb *fb, int width, int height,