mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement IsShader fn and IsTexture fn for WebGLRenderingContext
This commit is contained in:
parent
a09b2374f9
commit
8a5b0b8972
5 changed files with 51 additions and 2 deletions
|
@ -176,6 +176,14 @@ impl WebGLTexture {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_deleted(&self) -> bool {
|
||||
self.is_deleted.get()
|
||||
}
|
||||
|
||||
pub fn target(&self) -> Option<u32> {
|
||||
self.target.get()
|
||||
}
|
||||
|
||||
/// We have to follow the conversion rules for GLES 2.0. See:
|
||||
/// https://www.khronos.org/webgl/public-mailing-list/archives/1008/msg00014.html
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue