Fix render app never being ready

This commit is contained in:
Jan Hohenheim 2025-07-08 00:38:40 +02:00
parent ae6f9c8e22
commit 362143b7ad
No known key found for this signature in database

View File

@ -122,7 +122,6 @@ use bevy_ecs::{prelude::*, schedule::ScheduleLabel};
use bevy_utils::WgpuWrapper;
use bitflags::bitflags;
use core::ops::{Deref, DerefMut};
use std::panic;
use std::sync::Mutex;
use tracing::debug;
@ -396,13 +395,6 @@ impl Plugin for RenderPlugin {
.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) {
load_shader_library!(app, "maths.wgsl");
load_shader_library!(app, "color_operations.wgsl");