gfx: return formats by reference
This commit is contained in:
parent
b921c81e5d
commit
0f556fc054
7 changed files with 12 additions and 12 deletions
|
|
@ -74,7 +74,7 @@ impl ZwpLinuxBufferParamsV1 {
|
|||
Some(ctx) => ctx,
|
||||
None => return Err(ZwpLinuxBufferParamsV1Error::NoRenderContext),
|
||||
};
|
||||
let formats = ctx.formats();
|
||||
let formats = ctx.formats().clone();
|
||||
let format = match formats.get(&format) {
|
||||
Some(f) => f,
|
||||
None => return Err(ZwpLinuxBufferParamsV1Error::InvalidFormat(format)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue