Commit fed70c63 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'glres_cleanup' into 'master'

GL resource cleanup

See merge request !1
parents 304aef15 c01ccc2f
......@@ -240,6 +240,27 @@ void DepthPeeling::initializePlugin()
ACG::ShaderProgGenerator::setShaderDir(OpenFlipper::Options::shaderDirStr());
}
void DepthPeeling::exit()
{
delete peelBlend_;
peelBlend_ = 0;
delete peelFinal_;
peelFinal_ = 0;
delete peelBlendDual_;
peelBlendDual_ = 0;
delete peelFinalDual_;
peelFinalDual_ = 0;
if (peelQueryID_)
glDeleteQueries(1, &peelQueryID_);
peelQueryID_ = 0;
viewerRes_.clear();
}
void DepthPeeling::slotModeChanged( QAction * _action)
{
// Prepare Picking Debugger Flag
......
......@@ -94,7 +94,7 @@ private slots:
//BaseInterface
void initializePlugin();
void exit(){}
void exit();
// RenderInterface
void render(ACG::GLState* _glState, Viewer::ViewerProperties& _properties);
......
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