Skip to content
Snippets Groups Projects
Commit c51f6a84 authored by David C. Lonie's avatar David C. Lonie
Browse files

Add and use ReleaseGraphicsResources to OGLRenderTimer.

parent a8bc7360
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,8 @@ void vtkOpenGLFXAAFilter::Execute(vtkOpenGLRenderer *ren)
void vtkOpenGLFXAAFilter::ReleaseGraphicsResources()
{
this->FreeGLObjects();
this->PreparationTimer->ReleaseGraphicsResources();
this->FXAATimer->ReleaseGraphicsResources();
}
//------------------------------------------------------------------------------
......
......@@ -203,3 +203,9 @@ vtkOpenGLRenderTimer::GetElapsedNanoseconds()
return 0;
#endif // NO_TIMESTAMP_QUERIES
}
//------------------------------------------------------------------------------
void vtkOpenGLRenderTimer::ReleaseGraphicsResources()
{
this->Reset();
}
......@@ -78,6 +78,12 @@ public:
vtkTypeUInt64 GetElapsedNanoseconds();
//@}
/**
* Simply calls Reset() to ensure that query ids are freed. All stored timing
* information will be lost.
*/
void ReleaseGraphicsResources();
protected:
bool StartReady;
bool EndReady;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment