Results 1 to 2 of 2

Thread: How to cleanup wl_surface contents - previous display on screen ?

  1. #1

    Talking How to cleanup wl_surface contents - previous display on screen ?

    Hi,

    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);
    wl_surface::commit();

    Still its not working.
    Please give some hints.

    Thanks,
    Bhushan.

  2. #2
    Join Date
    Jul 2009
    Posts
    263

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •