Implement IsShader fn and IsTexture fn for WebGLRenderingContext

This commit is contained in:
Daniel 2016-05-07 12:06:17 -04:00
parent a09b2374f9
commit 8a5b0b8972
5 changed files with 51 additions and 2 deletions

View file

@ -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
///