I am making two QGLWidgets that are identical at launch, but the second sometimes has garbled text. It’s always the second window and only half the time.
QFont font = new QFont("Arial", 16);
renderText(x, y, string, font);
I’ve tried making the font initialized only once per render loop or sharing it across the two widgets, but that hasn’t solved the issue. Has anyone seen this and know of a way to fix it?
I’ve included a screenshot. Thanks.