Remove an obsolete todo in gl.attachShader()

Attaching the same shader twice should indeed emit an InvalidOperation error.
This commit is contained in:
Anthony Ramine 2018-07-30 13:57:30 +02:00
parent 3c0e82d106
commit 6af2ce79a2

View file

@ -192,8 +192,6 @@ impl WebGLProgram {
}
};
// TODO(emilio): Differentiate between same shader already assigned and other previous
// shader.
if shader_slot.get().is_some() {
return Err(WebGLError::InvalidOperation);
}