Qt: Properly activate context when resizing layers (fixes #3435)

This commit is contained in:
Vicki Pfau 2025-03-14 14:57:01 -07:00
parent cfe04fff88
commit 84704502bd
1 changed files with 6 additions and 0 deletions

View File

@ -699,7 +699,13 @@ void PainterGL::resizeContext() {
dequeueAll(false);
mRectangle dims = {0, 0, size.width(), size.height()};
if (!m_started) {
makeCurrent();
}
m_backend->setLayerDimensions(m_backend, VIDEO_LAYER_IMAGE, &dims);
if (!m_started) {
m_gl->doneCurrent();
}
recenterLayers();
m_dims = size;
}