aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-07-30 13:57:30 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-07-31 00:28:14 +0200
commit6af2ce79a2f83b38cbdba8e6bbd543e53d44b371 (patch)
treefb7e651d719bcaeafb9d44d8175f3af6884d58f8 /components/script/dom/webglprogram.rs
parent3c0e82d106229339231acffe9689d8c68cd180e7 (diff)
downloadservo-6af2ce79a2f83b38cbdba8e6bbd543e53d44b371.tar.gz
servo-6af2ce79a2f83b38cbdba8e6bbd543e53d44b371.zip
Remove an obsolete todo in gl.attachShader()
Attaching the same shader twice should indeed emit an InvalidOperation error.
Diffstat (limited to 'components/script/dom/webglprogram.rs')
-rw-r--r--components/script/dom/webglprogram.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/script/dom/webglprogram.rs b/components/script/dom/webglprogram.rs
index 075672c8107..6f371701074 100644
--- a/components/script/dom/webglprogram.rs
+++ b/components/script/dom/webglprogram.rs
@@ -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);
}