aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-04-10 05:11:15 -0400
committerGitHub <noreply@github.com>2020-04-10 05:11:15 -0400
commite43cadbc321fcb22a3af871e3048a9a12309db12 (patch)
tree314d7f63be013ff5ee450890fdfc69738cd7312d /components/canvas/webgl_thread.rs
parent9fd668488e0986a36fe55f7fd023588993674ae6 (diff)
parent865b538115ec72128e4b6609bf988de7d13f8c4a (diff)
downloadservo-e43cadbc321fcb22a3af871e3048a9a12309db12.tar.gz
servo-e43cadbc321fcb22a3af871e3048a9a12309db12.zip
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 ___
Diffstat (limited to 'components/canvas/webgl_thread.rs')
-rw-r--r--components/canvas/webgl_thread.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index dc549f63531..3e7cd9f6ab2 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -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();
}