mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Fix filtering of reserved WebGL names in gl.getAttribLocation
This commit is contained in:
parent
fcb6d5112e
commit
561c41097f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue