aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/builders/pipeline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/builders/pipeline.rs')
-rw-r--r--stockton-render/src/builders/pipeline.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/stockton-render/src/builders/pipeline.rs b/stockton-render/src/builders/pipeline.rs
index 25a4dc6..f68d9d6 100644
--- a/stockton-render/src/builders/pipeline.rs
+++ b/stockton-render/src/builders/pipeline.rs
@@ -275,10 +275,10 @@ impl CompletePipeline {
if let Some(x) = self.gm_module.take() {
device.destroy_shader_module(x)
}
- self.ts_module.take().map(|(a, b)| {
+ if let Some((a, b)) = self.ts_module.take() {
device.destroy_shader_module(a);
device.destroy_shader_module(b);
- });
+ }
device.destroy_graphics_pipeline(ManuallyDrop::into_inner(read(&self.pipeline)));