fix(wayland): update bevy-dmabuf and tell it to use srgb formats
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -155,6 +155,7 @@ impl ShmBufferBacking {
|
||||
},
|
||||
format: vk_format_to_drm_fourcc(vk_format.into()).unwrap() as u32,
|
||||
flip_y: false,
|
||||
srgb: true,
|
||||
};
|
||||
|
||||
let imported_texture = import_texture(bevy_render_dev, dmatex, DropCallback(None)).unwrap();
|
||||
|
||||
@@ -60,6 +60,7 @@ impl DmabufBacking {
|
||||
format: format as u32,
|
||||
// TODO: impl this in bevy-dmabuf
|
||||
flip_y: flags.contains(Flags::YInvert),
|
||||
srgb: true,
|
||||
};
|
||||
let dev = RENDER_DEVICE.wait();
|
||||
let imported_tex = import_texture(dev, dmatex, DropCallback(None))?;
|
||||
|
||||
Reference in New Issue
Block a user