Create globals only for enabled outputs in DRM backend

This commit is contained in:
emersion 2017-10-22 22:21:23 +02:00
parent c5fff08f8a
commit e1d213fccd
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 31 additions and 16 deletions

View file

@ -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;