aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 95d4e05..3b500f4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -221,6 +221,9 @@ int main(int argc, char *argv[]){
return -1;
}
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
+
// Run SDL_Quit when main returns
atexit(SDL_Quit);
@@ -338,6 +341,8 @@ int main(int argc, char *argv[]){
SDL_ShowCursor(SDL_DISABLE);
+ //glEnable(GL_CULL_FACE);
+
Texture::initColorIndex();
initEntity();