-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hello!
We encountered a bug using the latest version of the regl-scatterplot package, which breaks the displaying of dots when we try to hide/show the drawn points.
The bug could be seen and reproduced in the Codepen https://codepen.io/Sagva/pen/bGZKyBb
It was tested in different browsers with the same result: Chrom, Firefox, Edge (all on OS Windows 11).
Steps to reproduce:
- Create a scatterplot
- Draw points using the method:
scatterplot.draw([
[0.2, -0.1, 0, 0.1337],
[0.3, 0.1, 1, 0.3371],
[-0.9, 0.8, 2, 0.3713],
]);
- Press the “Hide/show points” button which uses
scatterplot.draw([])orscatterplot.clear()for hiding and
scatterplot.draw([
[0.2, -0.1, 0, 0.1337],
[0.3, 0.1, 1, 0.3371],
[-0.9, 0.8, 2, 0.3713],
]);
for showing points again.
After around 30 showings/hidings the scatter plot displays the colors in a mesh instead of the dots.

The console shows warnings:
WebGL: INVALID_ENUM: activeTexture: texture unit out of range
[.WebGL-000045A00AE21B00] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-000045A00AE21B00] GL_INVALID_VALUE: Sampler uniform value out of range.
Best regards, Elena.
