video: actually created the bridge BO in the render device
This commit is contained in:
parent
28e91e0c5d
commit
13bcdecd1b
1 changed files with 2 additions and 2 deletions
|
|
@ -1623,8 +1623,8 @@ impl MetalBackend {
|
|||
(None, render_tex, None)
|
||||
} else {
|
||||
// Create a _bridge_ BO in the render device
|
||||
usage |= GBM_BO_USE_LINEAR;
|
||||
let render_bo = dev.gbm.create_bo(width, height, format, usage);
|
||||
usage = GBM_BO_USE_RENDERING | GBM_BO_USE_LINEAR;
|
||||
let render_bo = render_ctx.egl.gbm.create_bo(width, height, format, usage);
|
||||
let render_bo = match render_bo {
|
||||
Ok(b) => b,
|
||||
Err(e) => return Err(MetalError::ScanoutBuffer(e)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue