comparison gldragon.cpp @ 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
comparison
equal deleted inserted replaced
45:534eccdd33d4 46:0c75c5f5c6b6
114 SDL_GetError()); 114 SDL_GetError());
115 return false; 115 return false;
116 } 116 }
117 117
118 // Set GL attributes 118 // Set GL attributes
119 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); 119 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
120 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); 120 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
121 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); 121 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
122 122
123 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); 123 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
124 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); 124 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
125 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); 125 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);