David Catuhe 8 years ago
parent
commit
8e9cc34160

File diff suppressed because it is too large
+ 4866 - 4866
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 2 - 2
dist/preview release/babylon.js


+ 1 - 1
dist/preview release/babylon.max.js

@@ -26080,7 +26080,7 @@ var BABYLON;
             return this._indexBuffer;
             return this._indexBuffer;
         };
         };
         Geometry.prototype._releaseVertexArrayObject = function (effect) {
         Geometry.prototype._releaseVertexArrayObject = function (effect) {
-            if (!effect) {
+            if (!effect || !this._vertexArrayObjects) {
                 return;
                 return;
             }
             }
             if (this._vertexArrayObjects[effect.key]) {
             if (this._vertexArrayObjects[effect.key]) {

File diff suppressed because it is too large
+ 4866 - 4866
dist/preview release/babylon.module.d.ts


File diff suppressed because it is too large
+ 2 - 2
dist/preview release/babylon.worker.js


+ 1 - 1
src/Mesh/babylon.geometry.ts

@@ -349,7 +349,7 @@
         }
         }
 
 
         public _releaseVertexArrayObject(effect: Effect) {
         public _releaseVertexArrayObject(effect: Effect) {
-            if (!effect) {
+            if (!effect || !this._vertexArrayObjects) {
                 return;
                 return;
             }
             }