mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Call glReadPixels right before swapping buffers
This commit is contained in:
parent
05096ab458
commit
d4cc82f11a
6 changed files with 11 additions and 18 deletions
|
|
@ -204,7 +204,7 @@ write_png(int width, int height)
|
|||
}
|
||||
|
||||
surface = cairo_image_surface_create_for_data(data,
|
||||
CAIRO_FORMAT_ARGB32,
|
||||
CAIRO_FORMAT_RGB24,
|
||||
width, height, buffer_stride);
|
||||
cairo_surface_write_to_png(surface, "wayland-screenshot.png");
|
||||
cairo_surface_destroy(surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue