render: store underlying DmaBufs in textures
This commit is contained in:
parent
1ac4f3dc52
commit
3635ae0104
10 changed files with 38 additions and 35 deletions
|
|
@ -17,11 +17,11 @@ pub struct Image {
|
|||
|
||||
impl Image {
|
||||
pub fn width(&self) -> i32 {
|
||||
self.gl.width
|
||||
self.gl.dmabuf.width
|
||||
}
|
||||
|
||||
pub fn height(&self) -> i32 {
|
||||
self.gl.height
|
||||
self.gl.dmabuf.height
|
||||
}
|
||||
|
||||
fn to_texture(self: &Rc<Self>) -> Result<Rc<Texture>, RenderError> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue