File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2312,16 +2312,15 @@ impl com::RawCommandBuffer<Backend> for CommandBuffer {
2312
2312
for clear in clears {
2313
2313
let pso; // has to live at least as long as all the commands
2314
2314
let depth_stencil;
2315
+ let raw_value;
2315
2316
2316
- 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 {
2317
+ let ( com_clear, target_index) = match * clear. borrow ( ) {
2319
2318
com:: AttachmentClear :: Color { index, value } => {
2320
2319
let channel = self . state . target_formats . colors [ index] . 1 ;
2321
2320
//Note: technically we should be able to derive the Channel from the
2322
2321
// `value` variant, but this is blocked by the portability that is
2323
2322
// always passing the attachment clears as `ClearColor::Float` atm.
2324
- let raw_value = com:: ClearColorRaw :: from ( value) ;
2323
+ raw_value = com:: ClearColorRaw :: from ( value) ;
2325
2324
let com = soft:: RenderCommand :: BindBufferData {
2326
2325
stage : pso:: Stage :: Fragment ,
2327
2326
index : 0 ,
You can’t perform that action at this time.
0 commit comments