webgl: Add isProgram() support.

There's one failure still, where a deleted program should still be
considered to be a program until it's unbound.  However, I recently
made it so that we unbind at delete time, and we may need to partially
back that change out.
This commit is contained in:
Eric Anholt 2016-08-28 16:34:39 -07:00
parent 1f2346d3b6
commit 847ab63de6
7 changed files with 11 additions and 86 deletions

View file

@ -87,6 +87,10 @@ impl WebGLProgram {
}
}
pub fn is_deleted(&self) -> bool {
self.is_deleted.get()
}
/// glLinkProgram
pub fn link(&self) {
self.linked.set(false);