Skip to content

Commit 0330e28

Browse files
committed
Fix plotly#7387: Specify buffers in regl.clear() to avoid performance warning
1 parent bd35269 commit 0330e28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/scattergl/plot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ var exports = module.exports = function plot(gd, subplot, cdata) {
6060
linkTraces(gd, subplot, cdata);
6161

6262
if(scene.dirty) {
63-
if(
63+
if (
6464
(scene.line2d || scene.error2d) &&
6565
!(scene.scatter2d || scene.fill2d || scene.glText)
6666
) {
6767
// Fixes shared WebGL context drawing lines only case
68-
regl.clear({});
68+
regl.clear({ color: true, depth: true });
6969
}
7070

7171
// make sure scenes are created

0 commit comments

Comments
 (0)