@@ -124,6 +124,9 @@ export class Button3D extends AbstractButton3D {
this._facadeTexture.rootContainer.scaleY = this._contentScaleRatio;
this._facadeTexture.premulAlpha = true;
}
+ else {
+ this._facadeTexture.rootContainer.clearControls();
+ }
this._facadeTexture.addControl(value);
@@ -2616,6 +2616,8 @@ export class ThinEngine {
this._alphaState.reset();
this._unpackFlipYCached = null;
+
+ this._gl.pixelStorei(this._gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0);
this._resetVertexBufferBinding();