viewer: fixed crash on destruction when interlacing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user