We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a6b2a commit 5735b93Copy full SHA for 5735b93
webclient/src/spaceport/scene.js
@@ -13,7 +13,12 @@ export const scene = ({ ref }) => {
13
14
var scene = new THREE.Scene();
15
16
- const renderer = new THREE.WebGLRenderer({ antialias: true });
+ try {
17
+ const renderer = new THREE.WebGLRenderer({ antialias: true });
18
+ } catch (error) {
19
+ console.log('Problem creating WebGLRenderer:', error);
20
+ return;
21
+ }
22
23
const width = ref.current.clientWidth;
24
const height = ref.current.clientHeight;
0 commit comments