support OpenGL 3.0 on Linux only when WITH_LEGACY_OPENGL=ON

Part of T49012
This commit is contained in:
Mike Erwin 2017-04-26 17:23:43 -04:00
parent cbaacc08dc
commit 6f0cf4a804
1 changed files with 2 additions and 0 deletions

View File

@ -1376,6 +1376,7 @@ GHOST_Context *GHOST_WindowX11::newDrawingContext(GHOST_TDrawingContextType type
else
delete context;
#ifdef WITH_LEGACY_OPENGL
// since that failed try 3.0 (mostly for Mesa, which doesn't implement compatibility profile)
context = new GHOST_ContextGLX(
m_wantStereoVisual,
@ -1393,6 +1394,7 @@ GHOST_Context *GHOST_WindowX11::newDrawingContext(GHOST_TDrawingContextType type
return context;
else
delete context;
#endif // WITH_LEGACY_OPENGL
}
return NULL;