gles: clean-up on unbind

this prevents resources from being kept
alive unnecessarily
This commit is contained in:
Christian Meissl 2024-06-18 21:38:55 +02:00 committed by Victoria Brekenfeld
parent b4f8120be0
commit fcd9f2c1ba

View file

@ -2028,6 +2028,7 @@ impl Unbind for GlesRenderer {
}
unsafe { self.gl.BindFramebuffer(ffi::FRAMEBUFFER, 0) };
self.target = None;
self.cleanup();
self.egl.unbind()?;
Ok(())
}