diff --git a/cmake/checks.cmake b/cmake/checks.cmake index d00d760a3..f5cabaa82 100644 --- a/cmake/checks.cmake +++ b/cmake/checks.cmake @@ -184,7 +184,7 @@ MACRO(CHECK_LIBRARIES) ENDIF(ENET_FOUND) # OpenGL - Find_Package(OpenGL) + Find_Package(OpenGL 2.1.0) IF(OPENGL_FOUND) SET(HAVE_LIBGL 1) diff --git a/src/libs/tgfclient/guiscreen.cpp b/src/libs/tgfclient/guiscreen.cpp index 09febfc99..67566d079 100644 --- a/src/libs/tgfclient/guiscreen.cpp +++ b/src/libs/tgfclient/guiscreen.cpp @@ -431,8 +431,8 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen) SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); #else // Version d'OpenGL - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY); #endif