How to cleanup wl_surface contents - previous display on screen ?
I am working on sample application based on opengl and wayland.
When I exit the application, I am destroying buffer and surfaces and other resources still the contents of the buffer are not getting cleaned up. I see the previous drawings are still on the screen.
I used this as an attempt:
wl_surface::attach(0, 0, 0);
Still its not working.
Please give some hints.
committing a NULL buffer to a surface will remove the surface from the screen. if you are using weston and desktop-shell, the background will be displayed instead of the buffer contents. but if there's no background surface, the old contents will remain.