aboutsummaryrefslogtreecommitdiff
path: root/examples/screenshot.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-22 16:43:51 -0400
committerGitHub <noreply@github.com>2017-10-22 16:43:51 -0400
commit86be449a3f04f24a1d0ff3b7b22b12be4a2d3c2c (patch)
tree85a056f626277e0e00cd5cbb0b99f8cb531934e8 /examples/screenshot.c
parentc5fff08f8a63b37ceb42e15641a14384efd163d2 (diff)
parente1d213fccdae068ecc0f11f4321dfd6528163253 (diff)
Merge pull request #318 from emersion/drm-null-outputs
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;