You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the second draw to not draw anything, but it seems to draw the old content a second time. When antialiasing is turned on (or with antialiasing off, but on my newer M1 Macbook Pro), it looks like this:
It looks like the drivers on these Macs check for 0,0,0,0 exactly and special case it with this buggy behavior.
It feels hacky, but it only needs to be applied when (1) a framebuffer is bound, (2) it's not antialiased, and (3) it's not using float colors (so we don't have to worry about the rounding down not happening.) This feels really hacky, but it does work...
Most appropriate sub-area of p5.js?
p5.js version
1.7.0
Web browser and version
Chrome 116, Firefox 115
Operating System
MacOS 10.14.6
Steps to reproduce this
Steps:
I expect the second draw to not draw anything, but it seems to draw the old content a second time. When antialiasing is turned on (or with antialiasing off, but on my newer M1 Macbook Pro), it looks like this:
However, on my Intel mac, it looks like this:
Snippet:
Live: https://editor.p5js.org/davepagurek/sketches/O_0u83OcQ
The text was updated successfully, but these errors were encountered: