We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122da13 commit dfe390cCopy full SHA for dfe390c
src/backend/metal/src/command.rs
@@ -2313,7 +2313,9 @@ impl com::RawCommandBuffer<Backend> for CommandBuffer {
2313
let pso; // has to live at least as long as all the commands
2314
let depth_stencil;
2315
2316
- let (com_clear, target_index) = match *clear.borrow() {
+ let borrowed_clear = clear.borrow();
2317
+ //Note: ^ has to live at least as long as the command
2318
+ let (com_clear, target_index) = match *borrowed_clear {
2319
com::AttachmentClear::Color { index, value } => {
2320
let channel = self.state.target_formats.colors[index].1;
2321
//Note: technically we should be able to derive the Channel from the
0 commit comments