Skip to content
Snippets Groups Projects
Commit 916c5e81 authored by David Lonie's avatar David Lonie Committed by Kitware Robot
Browse files

Merge topic 'rgr_rendertimer'


c51f6a84 Add and use ReleaseGraphicsResources to OGLRenderTimer.

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2324
parents 1f89d2d1 c51f6a84
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.
Please register or to comment