aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-04-09 14:29:11 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-04-09 14:44:02 +0200
commit561c41097fc5577f9747a205af29e443ace73a0a (patch)
tree0f3cad6db69e2904f04da5edcd4547542bb22a0b /components/script/dom/webglprogram.rs
parentfcb6d5112e62e74cf224e88d8693dce6983b281e (diff)
downloadservo-561c41097fc5577f9747a205af29e443ace73a0a.tar.gz
servo-561c41097fc5577f9747a205af29e443ace73a0a.zip
Fix filtering of reserved WebGL names in gl.getAttribLocation
Diffstat (limited to 'components/script/dom/webglprogram.rs')
-rw-r--r--components/script/dom/webglprogram.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webglprogram.rs b/components/script/dom/webglprogram.rs
index 115b866b984..88e03f6330c 100644
--- a/components/script/dom/webglprogram.rs
+++ b/components/script/dom/webglprogram.rs
@@ -306,7 +306,8 @@ impl WebGLProgram {
return Err(WebGLError::InvalidOperation);
}
- if name.starts_with("webgl") || name.starts_with("_webgl_") {
+ // https://www.khronos.org/registry/webgl/specs/latest/1.0/#GLSL_CONSTRUCTS
+ if name.starts_with("webgl_") || name.starts_with("_webgl_") {
return Ok(None);
}