Added drop impl to GLBufferDataReceiver
This commit is contained in:
parent
65d8c7d6d9
commit
d666f1252e
|
@ -1514,6 +1514,14 @@ pub struct GLBufferDataReceiver {
|
||||||
target: BufferTarget,
|
target: BufferTarget,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Drop for GLBufferDataReceiver {
|
||||||
|
fn drop(&mut self) {
|
||||||
|
unsafe {
|
||||||
|
gl::DeleteSync(self.gl_sync);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub struct GLTextureDataReceiver {
|
pub struct GLTextureDataReceiver {
|
||||||
gl_pixel_buffer: GLuint,
|
gl_pixel_buffer: GLuint,
|
||||||
gl_sync: GLsync,
|
gl_sync: GLsync,
|
||||||
|
|
Loading…
Reference in New Issue