mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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:
parent
1f2346d3b6
commit
847ab63de6
7 changed files with 11 additions and 86 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue