metellius
metellius
On linux i'm getting [Warning] QOpenGLShaderProgram::bind: program is not valid in the current context. [Error ] GL error 502 at glwidget.cpp : 382 [Error ] GL error 502 at glwidget.cpp...
Tracing shows that upon changing to external monitor, scenegraphInvalidated is emitted (signalling that the openglcontext is going down), followed by another call to initializeGL. In initializeGL, however, we don't do...
Testing the theory: This patch made it work again. ``` @@ -113,11 +118,11 @@ GLWidget::~GLWidget() void GLWidget::initializeGL() { qDebug() openglContext()->format()); - m_offscreenSurface.create(); + if (!m_offscreenSurface.isValid()) { + m_offscreenSurface.setFormat(quickWindow()->openglContext()->format()); + m_offscreenSurface.create();...
The patch I posted was not meant as a solution as it's just a partial revert of 49f9798. @ddennedy I want to make sure I don't introduce any regressions, so...