Merge remote-tracking branch 'bnf/fixes-2'
This commit is contained in:
@@ -361,8 +361,7 @@ main(int argc, char **argv)
|
|||||||
create_surface(&window);
|
create_surface(&window);
|
||||||
init_gl(&window);
|
init_gl(&window);
|
||||||
|
|
||||||
wl_display_frame_callback(display.display, window.surface,
|
redraw(window.surface, &window, 0);
|
||||||
redraw, &window);
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
wl_display_iterate(display.display, display.mask);
|
wl_display_iterate(display.display, display.mask);
|
||||||
|
|||||||
@@ -280,6 +280,8 @@ wlsc_buffer_attach(struct wl_buffer *buffer, struct wl_surface *surface)
|
|||||||
wl_list_remove(&es->buffer_link);
|
wl_list_remove(&es->buffer_link);
|
||||||
wl_list_insert(surfaces_attached_to, &es->buffer_link);
|
wl_list_insert(surfaces_attached_to, &es->buffer_link);
|
||||||
} else {
|
} else {
|
||||||
|
if (es->image != EGL_NO_IMAGE_KHR)
|
||||||
|
ec->destroy_image(ec->display, es->image);
|
||||||
es->image = ec->create_image(ec->display, NULL,
|
es->image = ec->create_image(ec->display, NULL,
|
||||||
EGL_WAYLAND_BUFFER_WL,
|
EGL_WAYLAND_BUFFER_WL,
|
||||||
buffer, NULL);
|
buffer, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user