diff --git a/QtScrcpy/render/qyuvopenglwidget.cpp b/QtScrcpy/render/qyuvopenglwidget.cpp index 783bdc9..e4f58b3 100644 --- a/QtScrcpy/render/qyuvopenglwidget.cpp +++ b/QtScrcpy/render/qyuvopenglwidget.cpp @@ -157,6 +157,8 @@ void QYUVOpenGLWidget::initializeGL() void QYUVOpenGLWidget::paintGL() { + m_shaderProgram.bind(); + if (m_needUpdate) { deInitTextures(); initTextures(); @@ -175,6 +177,8 @@ void QYUVOpenGLWidget::paintGL() glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); } + + m_shaderProgram.release(); } void QYUVOpenGLWidget::resizeGL(int width, int height)