We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a59dd commit 7eeb965Copy full SHA for 7eeb965
QtScrcpy/render/qyuvopenglwidget.cpp
@@ -157,6 +157,8 @@ void QYUVOpenGLWidget::initializeGL()
157
158
void QYUVOpenGLWidget::paintGL()
159
{
160
+ m_shaderProgram.bind();
161
+
162
if (m_needUpdate) {
163
deInitTextures();
164
initTextures();
@@ -175,6 +177,8 @@ void QYUVOpenGLWidget::paintGL()
175
177
176
178
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
179
}
180
181
+ m_shaderProgram.release();
182
183
184
void QYUVOpenGLWidget::resizeGL(int width, int height)
0 commit comments