Added drop impl to GLBufferDataReceiver

This commit is contained in:
Ben Gachowski 2020-12-15 21:12:25 -05:00 committed by Josh Matthews
parent 65d8c7d6d9
commit d666f1252e
1 changed files with 8 additions and 0 deletions

View File

@ -1514,6 +1514,14 @@ pub struct GLBufferDataReceiver {
target: BufferTarget,
}
impl Drop for GLBufferDataReceiver {
fn drop(&mut self) {
unsafe {
gl::DeleteSync(self.gl_sync);
}
}
}
pub struct GLTextureDataReceiver {
gl_pixel_buffer: GLuint,
gl_sync: GLsync,