mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Do not emit a WebGL error for "gl_" prefixed names in gl.getAttribLocation
This commit is contained in:
parent
561c41097f
commit
f837354cb7
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ impl WebGLProgram {
|
||||||
|
|
||||||
// Check if the name is reserved
|
// Check if the name is reserved
|
||||||
if name.starts_with("gl_") {
|
if name.starts_with("gl_") {
|
||||||
return Err(WebGLError::InvalidOperation);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#GLSL_CONSTRUCTS
|
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#GLSL_CONSTRUCTS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue