mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove an obsolete todo in gl.attachShader()
Attaching the same shader twice should indeed emit an InvalidOperation error.
This commit is contained in:
parent
3c0e82d106
commit
6af2ce79a2
1 changed files with 0 additions and 2 deletions
|
@ -192,8 +192,6 @@ impl WebGLProgram {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(emilio): Differentiate between same shader already assigned and other previous
|
|
||||||
// shader.
|
|
||||||
if shader_slot.get().is_some() {
|
if shader_slot.get().is_some() {
|
||||||
return Err(WebGLError::InvalidOperation);
|
return Err(WebGLError::InvalidOperation);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue