changeset 46:0c75c5f5c6b6

Downgrade GL version to 2.1.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 22:45:21 +0200
parents 534eccdd33d4
children 9909014498f0
files gldragon.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);