Fix filtering of reserved WebGL names in gl.getAttribLocation

This commit is contained in:
Anthony Ramine 2018-04-09 14:29:11 +02:00
parent fcb6d5112e
commit 561c41097f

View file

@ -306,7 +306,8 @@ impl WebGLProgram {
return Err(WebGLError::InvalidOperation); 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); return Ok(None);
} }