-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read properties of null
(reading 'enable') - When hardware acceleration is disabled
#70
Comments
I encountered the same issue when I disabled WebGL. You can wrap your component in an |
I have a strange behavior that I've noticed with this library and I'm wondering if either of you or if @shuding can help resolve this. When hardware acceleration is disabled, I run into this error as well. In order to fix that, I introduced a little logic to check if webgl is supported: useEffect(() => {
try {
const canvas = document.createElement('canvas');
const context = canvas.getContext('webgl') || canvas.getContext('experimental-webgl') as WebGLRenderingContext;
context.getSupportedExtensions();
}
catch (err) {
setIsWebGlSupported(false);
console.log('WebGL not supported, hiding globe animation...');
}
}, []); I then conditionally render the globe based on Now I've have seen an issue with this on a colleague's machine where they've disabled hardware acceleration, but instead of The globe itself then renders completely black. I was able to replicate the behavior in saucelabs. |
The text was updated successfully, but these errors were encountered: