started testing a node with a texture output

This commit is contained in:
itsmattkc
2019-05-22 03:30:26 +10:00
parent 2336f7345d
commit e21629892d
4 changed files with 26 additions and 40 deletions
+9
View File
@@ -221,7 +221,16 @@ void Timeline::SetSequence(SequencePtr sequence)
return;
}
if (sequence_ != nullptr) {
sequence_->SetGLContext(nullptr);
}
sequence_ = sequence;
if (sequence_ != nullptr) {
sequence_->SetGLContext(QOpenGLContext::globalShareContext());
}
update_sequence();
video_area->SetTrackType(sequence_.get(), olive::kTypeVideo);
audio_area->SetTrackType(sequence_.get(), olive::kTypeAudio);