diff --git a/src/core/utils/index.js b/src/core/utils/index.js index 670d844..b10278a 100644 --- a/src/core/utils/index.js +++ b/src/core/utils/index.js @@ -139,7 +139,7 @@ */ isWebGLSupported: function () { - var contextOptions = { stencil: true }; + var contextOptions = { stencil: true, failIfMajorPerformanceCaveat: true }; try { if (!window.WebGLRenderingContext) diff --git a/src/core/utils/index.js b/src/core/utils/index.js index 670d844..b10278a 100644 --- a/src/core/utils/index.js +++ b/src/core/utils/index.js @@ -139,7 +139,7 @@ */ isWebGLSupported: function () { - var contextOptions = { stencil: true }; + var contextOptions = { stencil: true, failIfMajorPerformanceCaveat: true }; try { if (!window.WebGLRenderingContext) diff --git a/src/mesh/Mesh.js b/src/mesh/Mesh.js index 9a5d304..c895e8e 100644 --- a/src/mesh/Mesh.js +++ b/src/mesh/Mesh.js @@ -219,6 +219,7 @@ renderer.bindShader(glData.shader); renderer.bindTexture(this._texture, 0); + renderer.state.setBlendMode(this.blendMode); glData.shader.uniforms.translationMatrix = this.worldTransform.toArray(true); glData.shader.uniforms.alpha = this.worldAlpha;