aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-04-06 07:38:59 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-04-06 07:38:59 -0400
commit3ca4cca09ed9a2b1028928dea98f19bd26ab3b2c (patch)
treef8444f987be86181786859c2aabdd2d7eb2a5539 /main.cpp
parentb2ea70a36ba2249383c9b5cb3c2c784c28311938 (diff)
First world and style
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();