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 }); {