Fix render app never being ready
This commit is contained in:
parent
ae6f9c8e22
commit
362143b7ad
@ -122,7 +122,6 @@ use bevy_ecs::{prelude::*, schedule::ScheduleLabel};
|
|||||||
use bevy_utils::WgpuWrapper;
|
use bevy_utils::WgpuWrapper;
|
||||||
use bitflags::bitflags;
|
use bitflags::bitflags;
|
||||||
use core::ops::{Deref, DerefMut};
|
use core::ops::{Deref, DerefMut};
|
||||||
use std::panic;
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use tracing::debug;
|
use tracing::debug;
|
||||||
|
|
||||||
@ -396,13 +395,6 @@ impl Plugin for RenderPlugin {
|
|||||||
.register_type::<SyncToRenderWorld>();
|
.register_type::<SyncToRenderWorld>();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ready(&self, app: &App) -> bool {
|
|
||||||
app.world()
|
|
||||||
.get_resource::<FutureRenderResources>()
|
|
||||||
.and_then(|frr| frr.0.try_lock().map(|locked| locked.is_some()).ok())
|
|
||||||
.unwrap_or(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn finish(&self, app: &mut App) {
|
fn finish(&self, app: &mut App) {
|
||||||
load_shader_library!(app, "maths.wgsl");
|
load_shader_library!(app, "maths.wgsl");
|
||||||
load_shader_library!(app, "color_operations.wgsl");
|
load_shader_library!(app, "color_operations.wgsl");
|
||||||
|
Loading…
Reference in New Issue
Block a user