Qt: Only use a QPainter with OpenGL is the OSD is enabled

This commit is contained in:
Vicki Pfau 2021-09-04 22:13:09 -07:00
parent cb366ab3ea
commit c9b9525161
1 changed files with 2 additions and 4 deletions

View File

@ -521,19 +521,17 @@ void PainterGL::unpause() {
}
void PainterGL::performDraw() {
m_painter.begin(m_window.get());
m_painter.beginNativePainting();
float r = m_surface->devicePixelRatio();
m_backend->resized(m_backend, m_size.width() * r, m_size.height() * r);
if (m_buffer) {
m_backend->postFrame(m_backend, m_buffer);
}
m_backend->drawFrame(m_backend);
m_painter.endNativePainting();
if (m_showOSD && m_messagePainter) {
m_painter.begin(m_window.get());
m_messagePainter->paint(&m_painter);
m_painter.end();
}
m_painter.end();
}
void PainterGL::enqueue(const uint32_t* backing) {