1
0
Fork 0
forked from wry/wry

render: move take_render_ops to GfxFramebuffer

This commit is contained in:
Julian Orth 2023-10-23 20:04:57 +02:00
parent 074347c71d
commit 5778c49679
3 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ use {
cursor::Cursor,
fixed::Fixed,
format::{Format, ARGB8888, XRGB8888},
gfx_api::{GfxFramebuffer, GfxTexture},
gfx_api::{GfxApiOpt, GfxFramebuffer, GfxTexture},
gfx_apis::gl::{
gl::{
frame_buffer::GlFrameBuffer,
@ -26,6 +26,7 @@ use {
any::Any,
cell::Cell,
fmt::{Debug, Formatter},
mem,
rc::Rc,
},
};
@ -263,6 +264,10 @@ impl GfxFramebuffer for Framebuffer {
self
}
fn take_render_ops(&self) -> Vec<GfxApiOpt> {
mem::take(&mut self.ctx.gfx_ops.borrow_mut())
}
fn clear(&self) {
self.clear()
}