Kaydet (Commit) 6c0e9a5b authored tarafından Michael Meeks's avatar Michael Meeks

vcl: gtk frames should DeInitialize properly, to handle GL cleanup.

Conflicts:
	vcl/unx/gtk/gtksalframe.cxx

Change-Id: Ie6a5464c28b89f08639939690052023e685a3d33
üst 131c8d9e
......@@ -773,8 +773,10 @@ void GtkSalFrame::InvalidateGraphics()
{
if( m_pGraphics )
{
m_pGraphics->SetDrawable( None, m_nXScreen );
m_pGraphics->DeInit();
m_pGraphics->SetWindow(nullptr);
delete m_pGraphics;
m_pGraphics = nullptr;
m_bGraphics = false;
}
}
......@@ -842,9 +844,6 @@ GtkSalFrame::~GtkSalFrame()
g_object_unref( G_OBJECT( m_pForeignParent ) );
if( m_pForeignTopLevel )
g_object_unref( G_OBJECT( m_pForeignTopLevel) );
delete m_pGraphics;
m_pGraphics = NULL;
}
void GtkSalFrame::moveWindow( long nX, long nY )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment