mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement IsBuffer, IsFramebuffer and IsRenderbuffer for WebGLRenderingContext
This commit is contained in:
parent
2a2b88f42c
commit
c017438428
6 changed files with 50 additions and 4 deletions
|
@ -95,6 +95,14 @@ impl WebGLBuffer {
|
|||
let _ = self.renderer.send(CanvasMsg::WebGL(WebGLCommand::DeleteBuffer(self.id)));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_deleted(&self) -> bool {
|
||||
self.is_deleted.get()
|
||||
}
|
||||
|
||||
pub fn target(&self) -> Option<u32> {
|
||||
self.target.get()
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for WebGLBuffer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue