- attempt to shutdown sdl in a more controlled way

This commit is contained in:
Mark Vejvoda
2011-02-12 08:05:18 +00:00
parent cc973f3427
commit c1ee5df801
4 changed files with 22 additions and 8 deletions

View File

@@ -21,7 +21,6 @@
std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n"; \
return 1; \
} \
atexit(SDL_Quit); \
SDL_EnableUNICODE(1); \
int result = X(argc, argv); \
return result; \

View File

@@ -61,7 +61,7 @@ void ModelRendererGl::begin(bool renderNormals, bool renderTextures, bool render
glEnable(GL_POLYGON_OFFSET_FILL);
//glEnable(GL_POLYGON_OFFSET_LINE);
//glEnable(GL_POLYGON_OFFSET_POINT);
glPolygonOffset(1.0f, 1.0f);
glPolygonOffset(0.005f, 0.0f);
glEnableClientState(GL_VERTEX_ARRAY);