diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-06 07:38:59 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-06 07:38:59 -0400 |
commit | 3ca4cca09ed9a2b1028928dea98f19bd26ab3b2c (patch) | |
tree | f8444f987be86181786859c2aabdd2d7eb2a5539 /main.cpp | |
parent | b2ea70a36ba2249383c9b5cb3c2c784c28311938 (diff) |
First world and style
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |