Restore previous clear color

This commit is contained in:
Bob Shelline 2020-10-30 18:00:37 -06:00
parent eed7406a41
commit 6c5ca9370c

View file

@ -186,7 +186,15 @@ fn run_event_loop() -> Result<(), Box<dyn Error>> {
color_attachments: &[wgpu::RenderPassColorAttachmentDescriptor {
attachment: &frame.view,
resolve_target: None,
ops: Default::default(),
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(wgpu::Color {
r: 0.007,
g: 0.007,
b: 0.007,
a: 1.0,
}),
store: true,
},
}],
depth_stencil_attachment: None,
});