diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-07-15 20:06:14 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-07-15 20:06:14 +0100 |
commit | 40fad1689720cad98e8b148067dc0cc1fe2f7bd4 (patch) | |
tree | bc2fb25e1405da015b2f50613dd976120b4b0570 | |
parent | 3e33f2768734ee9912cbf0cc4c0d609cda08248a (diff) | |
download | faqe-40fad1689720cad98e8b148067dc0cc1fe2f7bd4.tar.gz faqe-40fad1689720cad98e8b148067dc0cc1fe2f7bd4.tar.xz faqe-40fad1689720cad98e8b148067dc0cc1fe2f7bd4.zip |
Change OpenGL context version to 3.2 for better portability
Apparently some version OSX or something doesn't support 3.3.
-rw-r--r-- | faqe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ int main(int argc, char **argv) eprintf("Failed to initialise SDL: %s", SDL_GetError()); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); win = SDL_CreateWindow("faqe", |