Skip to content
Snippets Groups Projects
Commit a5b97dcb authored by dg's avatar dg
Browse files

test

git-svn-id: http://svn.net-core.org/repos/t-engine4@215 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7bd17209
No related branches found
No related tags found
No related merge requests found
......@@ -329,6 +329,9 @@ int resizeWindow(int width, int height)
/* Height / width ration */
GLfloat ratio;
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
initGL();
/* Protect against a divide by zero */
if ( height == 0 )
height = 1;
......@@ -447,8 +450,6 @@ int main(int argc, char *argv[])
TTF_Init();
/* Sets up OpenGL double buffering */
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
initGL();
resizeWindow(WIDTH, HEIGHT);
// And run the lua engine scripts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment