]> OCCT Git - occt-copy.git/commitdiff
0029477: Visualization, TKOpenGl - MSAA FBO initialization failure on OpenGL ES 3...
authorkgv <kgv@opencascade.com>
Fri, 2 Feb 2018 17:14:49 +0000 (20:14 +0300)
committerkgv <kgv@opencascade.com>
Sat, 17 Mar 2018 12:29:55 +0000 (15:29 +0300)
OpenGl_View::myFboColorFormat now initialized using sized texture format GL_RGBA8
on mobile platforms (as in case of desktop platform).

src/OpenGl/OpenGl_View.cxx

index ae1930a3bc4063b037f38c7771bba5da96acb4f4..75952cb1ee3af13d920350acff4bab5b998a98de 100644 (file)
@@ -65,11 +65,7 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
   myZLayers        (Structure_MAX_PRIORITY - Structure_MIN_PRIORITY + 1),
   myStateCounter         (theCounter),
   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),