gtk: fix wrong id between texture and framebuffer
commit2ff408de9c080f2fb5a94ebf6a209c6180c64933
authorAnthoine Bourgeois <anthoine.bourgeois@blade-group.com>
Mon, 2 Oct 2017 12:40:52 +0000 (2 14:40 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Oct 2017 12:50:54 +0000 (16 14:50 +0200)
tree7baae18d6af9206bdc13ab455c5cfc9959973299
parent82a4f1a96ed6be87c0ef6d4393b22085751bd450
gtk: fix wrong id between texture and framebuffer

The gd_gl_area_scanout_texture must destroy framebuffer if there is
no texture id instead of no framebuffer id.
The effect was a black screen with "-vga virtio -display gtk,gl=on"
options.
The bug was introduce by a4f113fd "gtk: use framebuffer helper functions."

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@blade-group.com>
Message-id: 20171002124052.13829-1-anthoine.bourgeois@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk-gl-area.c