Преглед на файлове

- added additional check to see if WebGL is supported

cyle преди 13 години
родител
ревизия
ee2733030f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Babylon/babylon.engine.js

+ 2 - 2
Babylon/babylon.engine.js

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