# HG changeset patch # User Matti Hamalainen # Date 1575578721 -7200 # Node ID 0c75c5f5c6b68fe2b21fa919769b933102c5dc89 # Parent 534eccdd33d4f4726b7b9f285339df9d2b704729 Downgrade GL version to 2.1. diff -r 534eccdd33d4 -r 0c75c5f5c6b6 gldragon.cpp --- a/gldragon.cpp Thu Dec 05 22:06:35 2019 +0200 +++ b/gldragon.cpp Thu Dec 05 22:45:21 2019 +0200 @@ -116,8 +116,8 @@ } // Set GL attributes - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); + 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_CORE); SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);