metal: make argument name unambiguous
This commit is contained in:
parent
886627aecd
commit
c1f5f306fc
1 changed files with 3 additions and 3 deletions
|
|
@ -2581,12 +2581,12 @@ impl MetalBackend {
|
||||||
plane_modifiers: &IndexSet<Modifier>,
|
plane_modifiers: &IndexSet<Modifier>,
|
||||||
width: i32,
|
width: i32,
|
||||||
height: i32,
|
height: i32,
|
||||||
ctx: &Rc<MetalRenderContext>,
|
render_ctx: &Rc<MetalRenderContext>,
|
||||||
cursor: bool,
|
cursor: bool,
|
||||||
) -> Result<[RenderBuffer; N], MetalError> {
|
) -> Result<[RenderBuffer; N], MetalError> {
|
||||||
let mut blend_buffer = None;
|
let mut blend_buffer = None;
|
||||||
if !cursor {
|
if !cursor {
|
||||||
match ctx.gfx.acquire_blend_buffer(width, height) {
|
match render_ctx.gfx.acquire_blend_buffer(width, height) {
|
||||||
Ok(bb) => blend_buffer = Some(bb),
|
Ok(bb) => blend_buffer = Some(bb),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::warn!("Could not create blend buffer: {}", ErrorFmt(e));
|
log::warn!("Could not create blend buffer: {}", ErrorFmt(e));
|
||||||
|
|
@ -2601,7 +2601,7 @@ impl MetalBackend {
|
||||||
plane_modifiers,
|
plane_modifiers,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
ctx,
|
render_ctx,
|
||||||
cursor,
|
cursor,
|
||||||
damage_queue.pop().unwrap(),
|
damage_queue.pop().unwrap(),
|
||||||
blend_buffer.clone(),
|
blend_buffer.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue