mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
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>
This commit is contained in:
parent
284c52eec2
commit
8bb6af6792
2 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@ typedef struct egl_fb {
|
||||||
QemuDmaBuf *dmabuf;
|
QemuDmaBuf *dmabuf;
|
||||||
} egl_fb;
|
} egl_fb;
|
||||||
|
|
||||||
|
#define EGL_FB_INIT { 0, }
|
||||||
|
|
||||||
void egl_fb_destroy(egl_fb *fb);
|
void egl_fb_destroy(egl_fb *fb);
|
||||||
void egl_fb_setup_default(egl_fb *fb, int width, int height);
|
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,
|
void egl_fb_setup_for_tex(egl_fb *fb, int width, int height,
|
||||||
|
|
|
@ -149,7 +149,7 @@ static void dbus_cursor_dmabuf(DisplayChangeListener *dcl,
|
||||||
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);
|
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);
|
||||||
DisplaySurface *ds;
|
DisplaySurface *ds;
|
||||||
GVariant *v_data = NULL;
|
GVariant *v_data = NULL;
|
||||||
egl_fb cursor_fb;
|
egl_fb cursor_fb = EGL_FB_INIT;
|
||||||
|
|
||||||
if (!dmabuf) {
|
if (!dmabuf) {
|
||||||
qemu_dbus_display1_listener_call_mouse_set(
|
qemu_dbus_display1_listener_call_mouse_set(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue