Auto merge of #26163 - dralley:remove-assertion, r=jdm

Remove assertion for negative value from get_uniform_location

closes #26150

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26150 (GitHub issue number if applicable)
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
This commit is contained in:
bors-servo 2020-04-10 05:11:15 -04:00 committed by GitHub
commit e43cadbc32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}