This commit is contained in:
itsmattkc
2019-03-20 23:48:08 +11:00
2 changed files with 4 additions and 6 deletions
+4 -4
View File
@@ -893,6 +893,7 @@ GLuint Effect::process_superimpose(double timecode) {
}
if (texture == nullptr || texture->width() != img.width() || texture->height() != img.height()) {
delete_texture();
texture = new QOpenGLTexture(QOpenGLTexture::Target2D);
@@ -903,6 +904,7 @@ GLuint Effect::process_superimpose(double timecode) {
texture->allocateStorage(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8);
redrew_image = true;
}
if (redrew_image) {
@@ -1088,10 +1090,8 @@ bool Effect::valueHasChanged(double timecode) {
}
void Effect::delete_texture() {
if (texture != nullptr) {
delete texture;
texture = nullptr;
}
delete texture;
texture = nullptr;
}
const EffectMeta* get_meta_from_name(const QString& input) {
-2
View File
@@ -299,8 +299,6 @@ void TextEffect::redraw(double timecode) {
}
void TextEffect::shadow_enable(bool e) {
close();
shadow_color->SetEnabled(e);
shadow_angle->SetEnabled(e);
shadow_distance->SetEnabled(e);