Correctly reset active uniforms on link

This commit is contained in:
Anthony Ramine 2018-07-19 10:44:39 +02:00
parent aab335e543
commit 8fabc6660a

View file

@ -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() => {},