diff options
author | emersion <contact@emersion.fr> | 2017-10-07 12:01:21 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-07 16:22:03 +0200 |
commit | d4cc82f11a4917328366926083a703d85e50ddd6 (patch) | |
tree | 636b23bd08c5fa9e9d97ac2785ed36df647fc352 /examples | |
parent | 05096ab45817127f75aecf10d94f082ec1815ee4 (diff) |
Call glReadPixels right before swapping buffers
Diffstat (limited to 'examples')
-rw-r--r-- | examples/screenshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c index 0f1f1efe..f70b9b56 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -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); |