fix(wayland): dmabuf format picking

This commit is contained in:
Nova
2025-08-03 13:47:04 -07:00
parent 923c1a3cc1
commit de045a1c68
2 changed files with 24 additions and 5 deletions

View File

@@ -45,7 +45,9 @@ impl DmabufFeedback {
self.tranche_target_device(client, sender_id, dev_id)
.await?;
let indices = (0..num_formats).flat_map(|i| i.to_ne_bytes()).collect();
let indices = (0..num_formats)
.flat_map(|i| (i as u16).to_ne_bytes())
.collect();
self.tranche_formats(client, sender_id, indices).await?;
// No special flags needed for simple EGL texture usage