mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
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:
commit
e43cadbc32
1 changed files with 0 additions and 1 deletions
|
@ -2280,7 +2280,6 @@ impl WebGLImpl {
|
||||||
|
|
||||||
fn uniform_location(gl: &Gl, program_id: WebGLProgramId, name: &str, chan: &WebGLSender<i32>) {
|
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));
|
let location = gl.get_uniform_location(program_id.get(), &to_name_in_compiled_shader(name));
|
||||||
assert!(location >= 0);
|
|
||||||
chan.send(location).unwrap();
|
chan.send(location).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue