Selaa lähdekoodia

Merge pull request #6884 from sebavan/master

Ensure PREMUL ALPHA is the one we expect
David Catuhe 5 vuotta sitten
vanhempi
commit
6a5a5e8ba0
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/Engines/thinEngine.ts

+ 2 - 0
src/Engines/thinEngine.ts

@@ -2616,6 +2616,8 @@ export class ThinEngine {
             this._alphaState.reset();
             this._alphaState.reset();
 
 
             this._unpackFlipYCached = null;
             this._unpackFlipYCached = null;
+
+            this._gl.pixelStorei(this._gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0);
         }
         }
 
 
         this._resetVertexBufferBinding();
         this._resetVertexBufferBinding();