Fix some problems in new backend integration
Fix several use of uninitialized/unallocated variables when using --experimental-backends Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -1170,14 +1170,6 @@ bool init_render(session_t *ps) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ps->ndamage = maximum_buffer_age(ps);
|
||||
ps->damage_ring = ccalloc(ps->ndamage, region_t);
|
||||
ps->damage = ps->damage_ring + ps->ndamage - 1;
|
||||
|
||||
for (int i = 0; i < ps->ndamage; i++) {
|
||||
pixman_region32_init(&ps->damage_ring[i]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user