Parcourir la source

Fix WipeCache VAO

sebavan il y a 5 ans
Parent
commit
5ea50744c2
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/Engines/thinEngine.ts

+ 3 - 1
src/Engines/thinEngine.ts

@@ -2623,6 +2623,9 @@ export class ThinEngine {
         this._viewportCached.z = 0;
         this._viewportCached.w = 0;
 
+        // Done before in case we clean the attributes
+        this._unbindVertexArrayObject();
+
         if (bruteForce) {
             this._currentProgram = null;
             this.resetTextureCache();
@@ -2651,7 +2654,6 @@ export class ThinEngine {
         this._resetVertexBufferBinding();
         this._cachedIndexBuffer = null;
         this._cachedEffectForVertexBuffers = null;
-        this._unbindVertexArrayObject();
         this.bindIndexBuffer(null);
     }