Do not emit a WebGL error for "gl_" prefixed names in gl.getAttribLocation

This commit is contained in:
Anthony Ramine 2018-04-09 15:52:56 +02:00
parent 561c41097f
commit f837354cb7

View file

@ -303,7 +303,7 @@ impl WebGLProgram {
// Check if the name is reserved
if name.starts_with("gl_") {
return Err(WebGLError::InvalidOperation);
return Ok(None);
}
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#GLSL_CONSTRUCTS