mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-07-29 04:08:39 +00:00
fix:opengl未执行初始化的情况下执行清理会触发assert
This commit is contained in:
parent
6e5f02fcb4
commit
a3f56669f7
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ void QYUVOpenGLWidget::initTextures()
|
||||||
|
|
||||||
void QYUVOpenGLWidget::deInitTextures()
|
void QYUVOpenGLWidget::deInitTextures()
|
||||||
{
|
{
|
||||||
glDeleteTextures(3, m_texture);
|
if (QOpenGLFunctions::isInitialized(QOpenGLFunctions::d_ptr)) {
|
||||||
|
glDeleteTextures(3, m_texture);
|
||||||
|
}
|
||||||
|
|
||||||
memset(m_texture, 0, 3);
|
memset(m_texture, 0, 3);
|
||||||
m_textureInited = false;
|
m_textureInited = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue