added additional check to see if WebGL is supported
@@ -11,7 +11,7 @@
throw new Error("WebGL not supported");
}
- if (this._gl === undefined) {
+ if (this._gl === undefined || this._gl === null) {
@@ -937,4 +937,4 @@
return false;
};
-})();
+})();