From 865b538115ec72128e4b6609bf988de7d13f8c4a Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Thu, 9 Apr 2020 22:25:57 -0400 Subject: [PATCH] Remove assertion for negative value from get_uniform_location closes #26150 --- components/canvas/webgl_thread.rs | 1 - 1 file changed, 1 deletion(-) 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) { let location = gl.get_uniform_location(program_id.get(), &to_name_in_compiled_shader(name)); - assert!(location >= 0); chan.send(location).unwrap(); }