mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
removed crash on closing window with an active shader. Temporary patch!
This commit is contained in:
parent
306371eb5b
commit
7ff233990b
@ -106,7 +106,8 @@ GLArea::GLArea(MultiViewer_Container *mvcont, RichParameterSet *current)
|
||||
GLArea::~GLArea()
|
||||
{
|
||||
// warn any iRender plugin that we're deleting glarea
|
||||
if (iRenderer)
|
||||
MeshDocument* md = this->md();
|
||||
if (iRenderer && (md != NULL))
|
||||
iRenderer->Finalize(currentShader, *this->md(), this);
|
||||
if(targetTex) glDeleteTextures(1, &targetTex);
|
||||
}
|
||||
|
||||
@ -91,8 +91,8 @@ public:
|
||||
|
||||
MultiViewer_Container *mvc();
|
||||
MainWindow *mw();
|
||||
MeshModel *mm(){ return mvc()->meshDoc.mm();}
|
||||
inline MeshDocument *md() {return &(mvc()->meshDoc);}
|
||||
MeshModel *mm(){ if (mvc() == NULL) return NULL;return mvc()->meshDoc.mm();}
|
||||
inline MeshDocument *md() {if (mvc() == NULL) return NULL;return &(mvc()->meshDoc);}
|
||||
|
||||
vcg::Trackball trackball;
|
||||
vcg::Trackball trackball_light;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user