render: lift non-generic render code out of the gl implementation
This commit is contained in:
parent
5778c49679
commit
44e9de7c93
6 changed files with 148 additions and 243 deletions
|
|
@ -55,7 +55,7 @@ pub fn take_screenshot(state: &State) -> Result<Screenshot, ScreenshooterError>
|
|||
GBM_BO_USE_RENDERING | GBM_BO_USE_LINEAR,
|
||||
)?;
|
||||
let fb = ctx.clone().dmabuf_fb(bo.dmabuf())?;
|
||||
fb.render(
|
||||
fb.render_node(
|
||||
state.root.deref(),
|
||||
state,
|
||||
Some(state.root.extents.get()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue