make use_mode use the new mode size on test_buffer

This commit is contained in:
dragonn 2021-12-23 17:47:12 +01:00
parent f8014568de
commit 9a7cd23093
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ impl<A: AsRawFd + 'static> AtomicDrmSurface<A> {
source,
})?;
let test_fb = self.create_test_buffer(pending.mode.size())?;
let test_fb = self.create_test_buffer(mode.size())?;
let req = self.build_request(
&mut pending.connectors.iter(),
&mut [].iter(),