From 865783efd31e5841e8fe978704639697cdad2e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20H=C3=B8nsi?= Date: Tue, 18 Apr 2017 13:25:18 +0200 Subject: [PATCH] Fixed #6580, blending in boost caused barely visible markers in scatter charts. --- js/modules/boost.src.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/modules/boost.src.js b/js/modules/boost.src.js index f19e7ebff32..71d7b5e121a 100644 --- a/js/modules/boost.src.js +++ b/js/modules/boost.src.js @@ -1037,7 +1037,7 @@ function GLRenderer(postRenderCallback) { /* * Clear the depth and color buffer */ - function clear() { + function clear() { gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); } @@ -1660,8 +1660,9 @@ function GLRenderer(postRenderCallback) { gl.blendEquation(gl.FUNC_MIN); } else { - gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);//, gl.ONE, gl.ZERO); - gl.blendEquation(gl.FUNC_ADD); + //gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);//, gl.ONE, gl.ZERO); + //gl.blendEquation(gl.FUNC_ADD); + gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA); } shader.reset(); @@ -1819,7 +1820,7 @@ function GLRenderer(postRenderCallback) { circleTexture.width = 512; circleTexture.height = 512; - circleCtx.fillStyle = '#FFF'; + circleCtx.fillStyle = '#FFF'; circleCtx.beginPath(); circleCtx.arc(256, 256, 256, 0, 2 * Math.PI); circleCtx.fill();