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