nano-pow 4.1.8 → 4.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.min.js +1 -1
- package/package.json +1 -1
package/dist/main.min.js
CHANGED
|
@@ -798,7 +798,7 @@ try {
|
|
|
798
798
|
}
|
|
799
799
|
try {
|
|
800
800
|
const gl = new OffscreenCanvas(0, 0)?.getContext?.("webgl2");
|
|
801
|
-
isGlSupported = gl instanceof WebGL2RenderingContext;
|
|
801
|
+
isGlSupported = gl instanceof WebGL2RenderingContext && !gl.isContextLost();
|
|
802
802
|
} catch (err) {
|
|
803
803
|
console.warn("WebGL is not supported in this environment.\n", err);
|
|
804
804
|
isGlSupported = false;
|