Remove assertion for negative value from get_uniform_location

closes #26150
This commit is contained in:
Daniel Alley 2020-04-09 22:25:57 -04:00
parent 455a99ca8d
commit 865b538115

View file

@ -2280,7 +2280,6 @@ impl WebGLImpl {
fn uniform_location(gl: &Gl, program_id: WebGLProgramId, name: &str, chan: &WebGLSender<i32>) {
let location = gl.get_uniform_location(program_id.get(), &to_name_in_compiled_shader(name));
assert!(location >= 0);
chan.send(location).unwrap();
}