Catch footer WebGL errors, ignore
This commit is contained in:
parent
bf418b6a15
commit
a2b0eec09c
|
@ -116,11 +116,19 @@ export const scene = ({ ref }) => {
|
|||
ships = ships.filter((s) => !s.kill);
|
||||
bolts = bolts.filter((s) => !s.kill);
|
||||
|
||||
try {
|
||||
requestAnimationFrame(animate);
|
||||
renderer.render(scene, camera);
|
||||
} catch(err) {
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
animate();
|
||||
|
||||
renderer.render(scene, camera);
|
||||
} catch(err) {
|
||||
renderer.dispose();
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user