fix:opengl未执行初始化的情况下执行清理会触发assert

dev
Barry 7 years ago
parent b0c228df02
commit 7ec3f5d7c6

@ -221,7 +221,10 @@ void QYUVOpenGLWidget::initTextures()
void QYUVOpenGLWidget::deInitTextures()
{
if (QOpenGLFunctions::isInitialized(QOpenGLFunctions::d_ptr)) {
glDeleteTextures(3, m_texture);
}
memset(m_texture, 0, 3);
m_textureInited = false;
}

Loading…
Cancel
Save