diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-05-19 15:15:49 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-05-19 15:15:49 +0300 |
commit | 2383667a2e67aeb645792b52ad508c2fd2178202 (patch) | |
tree | 342e28eda77f010cdf9f42f13963e65990a5a4c9 /intern/ghost | |
parent | 3527739002407ac9b1698beb1cde58b0077e3b78 (diff) |
Remove reference to WITH_LEGACY_OPENGL
We only keep this as a way to get GPU_stubs to run, in case we want to do a
throughout cleanup in the codebase and want code using legacy calls to
fail to build.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_ContextWGL.cpp | 23 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 19 |
2 files changed, 0 insertions, 42 deletions
diff --git a/intern/ghost/intern/GHOST_ContextWGL.cpp b/intern/ghost/intern/GHOST_ContextWGL.cpp index 3538632ce40..8cf311b9e84 100644 --- a/intern/ghost/intern/GHOST_ContextWGL.cpp +++ b/intern/ghost/intern/GHOST_ContextWGL.cpp @@ -878,23 +878,6 @@ GHOST_TSuccess GHOST_ContextWGL::initializeDrawingContext() else m_hGLRC = s_sharedHGLRC; } -#ifdef WITH_LEGACY_OPENGL - else { - if (m_contextProfileMask != 0) - fprintf(stderr, "Warning! Legacy WGL is unable to select between OpenGL profiles."); - - if (m_contextMajorVersion != 0 || m_contextMinorVersion != 0) - fprintf(stderr, "Warning! Legacy WGL is unable to select between OpenGL versions."); - - if (m_contextFlags != 0) - fprintf(stderr, "Warning! Legacy WGL is unable to set context flags."); - - if (!s_singleContextMode || s_sharedHGLRC == NULL) - m_hGLRC = ::wglCreateContext(m_hDC); - else - m_hGLRC = s_sharedHGLRC; - } -#endif // WITH_LEGACY_OPENGL if (!WIN32_CHK(m_hGLRC != NULL)) { ::wglMakeCurrent(prevHDC, prevHGLRC); @@ -946,13 +929,7 @@ GHOST_TSuccess GHOST_ContextWGL::initializeDrawingContext() MB_OK | MB_ICONERROR); exit(0); } -#if defined(WITH_LEGACY_OPENGL) - else if (version[0] < '3') { - // relax requirements for Mesa, which uses GL 3.0 - // while other drivers use GL 3.3+ compatibility profile -#else else if (version[0] < '3' || (version[0] == '3' && version[2] < '3')) { -#endif MessageBox(m_hWnd, "Blender requires a graphics driver with OpenGL 3.3 support.\n\n" "The program will now close.", "Blender - Unsupported Graphics Driver!", diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 11f3a6ea406..450fe568814 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -1386,25 +1386,6 @@ 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, - m_wantNumOfAASamples, - m_window, - m_display, - m_visualInfo, - (GLXFBConfig)m_fbconfig, - 0, // no profile bit - 3, 0, - GHOST_OPENGL_GLX_CONTEXT_FLAGS | (m_is_debug_context ? GLX_CONTEXT_DEBUG_BIT_ARB : 0), - GHOST_OPENGL_GLX_RESET_NOTIFICATION_STRATEGY); - - if (context->initializeDrawingContext()) - return context; - else - delete context; -#endif // WITH_LEGACY_OPENGL } return NULL; |