mirror of
https://github.com/Smithay/smithay.git
synced 2024-09-28 03:21:14 +02:00
gles: clean-up on unbind
this prevents resources from being kept alive unnecessarily
This commit is contained in:
parent
b4f8120be0
commit
fcd9f2c1ba
1 changed files with 1 additions and 0 deletions
|
@ -2028,6 +2028,7 @@ impl Unbind for GlesRenderer {
|
|||
}
|
||||
unsafe { self.gl.BindFramebuffer(ffi::FRAMEBUFFER, 0) };
|
||||
self.target = None;
|
||||
self.cleanup();
|
||||
self.egl.unbind()?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue