1
0
Fork 0
forked from wry/wry

render: lift non-generic render code out of the gl implementation

This commit is contained in:
Julian Orth 2023-10-23 20:20:23 +02:00
parent 5778c49679
commit 44e9de7c93
6 changed files with 148 additions and 243 deletions

View file

@ -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()),