Commit e98e4607 authored by Ken Martin's avatar Ken Martin

Add missing ReleasGraphicsResources call

parent 8eefde5c
......@@ -84,6 +84,14 @@ vtkOpenGLImageMapper::~vtkOpenGLImageMapper()
this->Actor->UnRegister(this);
}
//----------------------------------------------------------------------------
// Release the graphics resources used by this texture.
void vtkOpenGLImageMapper::ReleaseGraphicsResources(vtkWindow *renWin)
{
this->Actor->ReleaseGraphicsResources(renWin);
}
//----------------------------------------------------------------------------
// I know #define can be evil, but this macro absolutely ensures
......
......@@ -56,6 +56,11 @@ public:
// used internally by the templated functions
void DrawPixels(vtkViewport *vp, int width, int height, int numComponents, void *data);
// Description:
// Release any graphics resources that are being consumed by this
// mapper, the image texture in particular.
void ReleaseGraphicsResources(vtkWindow *);
protected:
vtkOpenGLImageMapper();
~vtkOpenGLImageMapper();
......
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