Skip to content

Commit

Permalink
Remove assertion for negative value from get_uniform_location
Browse files Browse the repository at this point in the history
closes #26150
  • Loading branch information
dralley committed Apr 10, 2020
1 parent 455a99c commit 865b538
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/canvas/webgl_thread.rs
Expand Up @@ -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();
}

Expand Down

0 comments on commit 865b538

Please sign in to comment.