Juce 8.0.8+ Causes weird drawing issues?

I’m having some really weird drawing bugs post updating to 8.0.10. I was previously on 8.0.7. I’m trying to find specifically which commit broke it, but it occurs at 8.0.8.

(Correct version, 8.0.7)


(Incorrect version, post 8.0.7)

(Note 8.0.8+ this drawing issue is slightly improved, but still very incorrect)

To provide some context, my drawing setup is a little complicated as theres a lot of openGL involved. The filter panel for example in this image is actually an openGL rendered component (seems like overkill but needed for many parts of the app).

Also to clarify, this issue is happening many places in my app, not this single page.

The last version that seems to work correctly is commit f9620d668d9e6b87fa56f880ef23f7752e507213 which is right before a bunch of direct2d commits so I assume something messed it up in that.

I realize this is a pretty complicated issue and a little niche since most peoples setup will not look like mine, but just wondering if maybe any insight could be provided as to what was changed and how it might have effected me.

The quickest way to work out which JUCE commit introduced the change would be to use git bisect on the JUCE repo. Finding the problematic commit might hint at the underlying cause of the problem.

That said, it might be worth checking if you’re using intermediate Image and Graphics objects anywhere. If so, are you making sure to call the destructor of the Graphics object before attempting to draw the Image?