1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0023246: TKOpenGl viewer created without depth buffer on some X11 implementations

Apply workaround on Mac OS platforms too
to ensure GL context created with depth buffer.
This commit is contained in:
kgv 2012-09-11 09:51:12 +04:00
parent fc9e20957d
commit cdc56cc8ae

View 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