]> OCCT Git - occt.git/commitdiff
0023246: TKOpenGl viewer created without depth buffer on some X11 implementations
authorkgv <kgv@opencascade.com>
Tue, 11 Sep 2012 05:51:12 +0000 (09:51 +0400)
committerkgv <kgv@opencascade.com>
Fri, 14 Sep 2012 13:56:10 +0000 (17:56 +0400)
Apply workaround on Mac OS platforms too
to ensure GL context created with depth buffer.

src/OpenGl/OpenGl_Window.cxx

index 0f4be462879e87afa744c78f736725c456db51b8..ef1935d1ee1528e0af7f1363eb336f17830372f7 100644 (file)
@@ -212,7 +212,7 @@ OpenGl_Window::OpenGl_Window (const Handle(OpenGl_Display)& theDisplay,
   }
   else
   {
-  #if defined(__linux) || defined(Linux)
+  #if defined(__linux) || defined(Linux) || defined(__APPLE__)
     if (aVis != NULL)
     {
       // check Visual for OpenGl context's parameters compability