1
0
Fork 0
forked from wry/wry

vulkan: preserve framebuffer in pending frame

This commit is contained in:
Julian Orth 2025-02-21 11:14:01 +01:00
parent 1b46fd0ceb
commit cf6016f61f
5 changed files with 39 additions and 34 deletions

View file

@ -100,14 +100,16 @@ impl GfxFramebuffer for Framebuffer {
}
fn render_with_region(
&self,
self: Rc<Self>,
acquire_sync: AcquireSync,
_release_sync: ReleaseSync,
ops: &[GfxApiOpt],
clear: Option<&Color>,
_region: &Region,
) -> Result<Option<SyncFile>, GfxError> {
self.render(acquire_sync, ops, clear).map_err(|e| e.into())
(*self)
.render(acquire_sync, ops, clear)
.map_err(|e| e.into())
}
fn format(&self) -> &'static Format {