mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Correctly reset active uniforms on link
This commit is contained in:
parent
aab335e543
commit
8fabc6660a
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ impl WebGLProgram {
|
|||
return Err(WebGLError::InvalidOperation);
|
||||
}
|
||||
self.linked.set(false);
|
||||
*self.active_attribs.borrow_mut() = vec![].into();
|
||||
*self.active_attribs.borrow_mut() = Box::new([]);
|
||||
*self.active_uniforms.borrow_mut() = Box::new([]);
|
||||
|
||||
match self.fragment_shader.get() {
|
||||
Some(ref shader) if shader.successfully_compiled() => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue