fix: gate bevy-dmabuf plugin behind wayland
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -312,8 +312,11 @@ fn bevy_loop(
|
|||||||
// .add(AnimationPlugin)
|
// .add(AnimationPlugin)
|
||||||
.add(AudioPlugin::default())
|
.add(AudioPlugin::default())
|
||||||
.add(GizmoPlugin)
|
.add(GizmoPlugin)
|
||||||
.add(WindowPlugin::default())
|
.add(WindowPlugin::default());
|
||||||
.add(DmabufImportPlugin);
|
#[cfg(feature = "wayland")]
|
||||||
|
{
|
||||||
|
plugins = plugins.add(DmabufImportPlugin);
|
||||||
|
}
|
||||||
let mut task_pool_plugin = TaskPoolPlugin::default();
|
let mut task_pool_plugin = TaskPoolPlugin::default();
|
||||||
// make tokio work
|
// make tokio work
|
||||||
let handle = tokio::runtime::Handle::current();
|
let handle = tokio::runtime::Handle::current();
|
||||||
|
|||||||
@@ -560,7 +560,7 @@ impl Model {
|
|||||||
setup_complete_notify: Notify::new(),
|
setup_complete_notify: Notify::new(),
|
||||||
setup_complete: AtomicBool::new(false),
|
setup_complete: AtomicBool::new(false),
|
||||||
});
|
});
|
||||||
model.spatial.bounding_box_calc.set(|n| {
|
_ = model.spatial.bounding_box_calc.set(|n| {
|
||||||
Box::pin(async {
|
Box::pin(async {
|
||||||
if let Ok(model) = n.get_aspect::<Model>()
|
if let Ok(model) = n.get_aspect::<Model>()
|
||||||
&& !model.setup_complete.load(Ordering::Relaxed)
|
&& !model.setup_complete.load(Ordering::Relaxed)
|
||||||
|
|||||||
Reference in New Issue
Block a user