Call glReadPixels right before swapping buffers

This commit is contained in:
emersion 2017-10-07 12:01:21 +02:00
parent 05096ab458
commit d4cc82f11a
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 11 additions and 18 deletions

View file

@ -19,7 +19,6 @@ struct wlr_output_impl {
void (*set_gamma)(struct wlr_output *output,
uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b);
uint16_t (*get_gamma_size)(struct wlr_output *output);
void (*read_pixels)(struct wlr_output *_output, void *out_data);
};
void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *impl);

View file

@ -37,7 +37,7 @@ struct wlr_output {
struct {
struct wl_signal frame;
struct wl_signal post_frame;
struct wl_signal swap_buffers;
struct wl_signal resolution;
struct wl_signal destroy;
} events;