Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix #7387: Specify buffers in regl.clear() to avoid performance warning
  • Loading branch information
MzyzzG committed Mar 16, 2025
commit 0330e28d56936856e42d177979c4f04f35dfed8b
4 changes: 2 additions & 2 deletions src/traces/scattergl/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ var exports = module.exports = function plot(gd, subplot, cdata) {
linkTraces(gd, subplot, cdata);

if(scene.dirty) {
if(
if (
(scene.line2d || scene.error2d) &&
!(scene.scatter2d || scene.fill2d || scene.glText)
) {
// Fixes shared WebGL context drawing lines only case
regl.clear({});
regl.clear({ color: true, depth: true });
}

// make sure scenes are created
Expand Down