aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/level.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:24 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:24 +0100
commit0ddc1e39dc24cff636defbbbab974967bb5301b8 (patch)
tree7745054a2bc4030819eed3d39e0df45c94cc8b40 /stockton-render/src/level.rs
parentb86e97f67a07368877bd18501aebcbe80cf93118 (diff)
fix(queues): fix validation errors & docs
Diffstat (limited to 'stockton-render/src/level.rs')
-rw-r--r--stockton-render/src/level.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stockton-render/src/level.rs b/stockton-render/src/level.rs
index ceb361b..fc5111e 100644
--- a/stockton-render/src/level.rs
+++ b/stockton-render/src/level.rs
@@ -15,7 +15,7 @@ use stockton_skeleton::{
},
context::RenderingContext,
draw_passes::{util::TargetSpecificResources, DrawPass, IntoDrawPass, PassPosition},
- error::{EnvironmentError, LevelError, LockPoisoned},
+ error::{LevelError, LockPoisoned},
mem::{DataPool, DepthBufferPool, StagingPool, TexturesPool},
queue_negotiator::QueueNegotiator,
texture::{resolver::TextureResolver, TexLoadQueue, TextureLoadConfig, TextureRepo},
@@ -453,8 +453,8 @@ where
) -> Result<Vec<(&'c QueueFamilyT, Vec<f32>)>> {
queue_negotiator.find(adapter, &TexLoadQueue)?;
- Ok(vec![queue_negotiator
- .family_spec::<TexLoadQueue>(&adapter.queue_families, 1)
- .ok_or(EnvironmentError::NoSuitableFamilies)?])
+ Ok(vec![
+ queue_negotiator.family_spec::<TexLoadQueue>(&adapter.queue_families, 1)?
+ ])
}
}