viewer: fixed crash on destruction when interlacing

This commit is contained in:
itsmattkc
2021-05-03 22:06:57 +10:00
parent 6d2eeb7409
commit 5af00496c5
+3
View File
@@ -452,9 +452,12 @@ void ViewerDisplayWidget::OnPaint()
void ViewerDisplayWidget::OnDestroy()
{
deinterlace_shader_.clear();
super::OnDestroy();
texture_ = nullptr;
deinterlace_texture_ = nullptr;
}
QPointF ViewerDisplayWidget::GetTexturePosition(const QPoint &screen_pos)