Don't panic when tearing down a WebGL context and the thead is unreachable.

This avoids some cascading double-panics when there are errors in the WebGL rendering thread.
This commit is contained in:
Josh Matthews 2018-05-29 15:26:39 -04:00 committed by GitHub
parent 7cc4165dda
commit b1202cfa9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1193,7 +1193,7 @@ impl WebGLRenderingContext {
impl Drop for WebGLRenderingContext {
fn drop(&mut self) {
self.webgl_sender.send_remove().unwrap();
let _ = self.webgl_sender.send_remove();
}
}