Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-04-27 00:23:43 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-27 16:30:48 +0300
commit6f0cf4a80403a7858fb4202ea54a9ccfffca420f (patch)
tree7ca513b2e829fa92e87f40f00a29ffe63e68c7d2 /intern/ghost
parentcbaacc08dc51913141cf927139b3dc004af8df73 (diff)
support OpenGL 3.0 on Linux only when WITH_LEGACY_OPENGL=ON
Part of T49012
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_WindowX11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index f39f4f52289..7dc3f917fde 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -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;