0029477: Visualization, TKOpenGl - MSAA FBO initialization failure on OpenGL ES 3...
[occt.git] / src / OpenGl / OpenGl_View.cxx
index 1735b1d..8f68818 100644 (file)
@@ -65,11 +65,7 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
   myCurrLightSourceState (theCounter->Increment()),
   myLightsRevision       (0),
   myLastLightSourceState (0, 0),
-#if !defined(GL_ES_VERSION_2_0)
   myFboColorFormat       (GL_RGBA8),
-#else
-  myFboColorFormat       (GL_RGBA),
-#endif
   myFboDepthFormat       (GL_DEPTH24_STENCIL8),
   myToFlipOutput         (Standard_False),
   myFrameCounter         (0),
@@ -141,6 +137,7 @@ OpenGl_View::~OpenGl_View()
 void OpenGl_View::ReleaseGlResources (const Handle(OpenGl_Context)& theCtx)
 {
   myGraduatedTrihedron.Release (theCtx.operator->());
+  myFrameStatsPrs.Release (theCtx.operator->());
 
   if (!myTextureEnv.IsNull())
   {