Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a62786b

Browse files
authored
Merge pull request #7390 from MzyzzG/fix-7387-clearflags-warning
Fix #7387: Specify buffers in regl.clear() to avoid performance warning
2 parents 55fca52 + 0330e28 commit a62786b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/traces/scattergl/plot.js‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /