fix clip close crash

This commit is contained in:
itsmattkc
2019-03-20 23:38:44 +11:00
parent 9c920cfcc3
commit 262e93460f
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -565,6 +565,8 @@ GLuint compose_sequence(ComposeSequenceParams &params) {
}
qDebug() << "Input colorspace:" << input_cs;
try {
OCIO::ConstProcessorRcPtr processor = config->getProcessor(input_cs.toUtf8(),
OCIO::ROLE_SCENE_LINEAR);
+4 -2
View File
@@ -498,8 +498,10 @@ void Clip::Close(bool wait) {
}
// destroy opengl texture in main thread
QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &texture);
texture = 0;
if (texture > 0) {
QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &texture);
texture = 0;
}
// close all effects
for (int i=0;i<effects.size();i++) {