diff --git a/webclient/src/spaceport/scene.js b/webclient/src/spaceport/scene.js index 9924f7f..a35282f 100644 --- a/webclient/src/spaceport/scene.js +++ b/webclient/src/spaceport/scene.js @@ -13,7 +13,13 @@ export const scene = ({ ref }) => { var scene = new THREE.Scene(); - const renderer = new THREE.WebGLRenderer({ antialias: true }); + let renderer = null; + try { + renderer = new THREE.WebGLRenderer({ antialias: true }); + } catch (error) { + console.log('Problem creating WebGLRenderer:', error); + return; + } const width = ref.current.clientWidth; const height = ref.current.clientHeight;