aboutsummaryrefslogtreecommitdiff
path: root/examples/screenshot.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-22 22:21:23 +0200
committeremersion <contact@emersion.fr>2017-10-22 22:21:23 +0200
commite1d213fccdae068ecc0f11f4321dfd6528163253 (patch)
tree85a056f626277e0e00cd5cbb0b99f8cb531934e8 /examples/screenshot.c
parentc5fff08f8a63b37ceb42e15641a14384efd163d2 (diff)
Create globals only for enabled outputs in DRM backend
Diffstat (limited to 'examples/screenshot.c')
-rw-r--r--examples/screenshot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c
index 95af49ca..2a3b74aa 100644
--- a/examples/screenshot.c
+++ b/examples/screenshot.c
@@ -267,10 +267,6 @@ int main(int argc, char *argv[]) {
struct screenshooter_output *output;
wl_list_for_each(output, &output_list, link) {
- if (output->width == 0 || output->height == 0) {
- continue;
- }
-
output->buffer = create_shm_buffer(output->width, output->height, &output->data);
if (output->buffer == NULL) {
return -1;