From acfd5704404f01989cefcd0b61af72a13928f3f0 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Fri, 3 Mar 2023 11:32:39 -0800 Subject: [PATCH] Handle error that can be returned by render_to_texture --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f4aabca..53482e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -128,7 +128,7 @@ impl Renderer { if target.width != width || target.height != height { target = TargetTexture::new(device, width, height); } - self.render_to_texture(device, queue, scene, &target.view, ¶ms); + self.render_to_texture(device, queue, scene, &target.view, ¶ms)?; let mut encoder = device.create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None }); {