Changeset 5225 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Sep 23, 2005, 10:07:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5216 r5225 51 51 52 52 this->fullscreenFlag = 0; 53 this->videoFlags = 0; 54 this->screen = NULL; 53 55 } 54 56 … … 68 70 delete this->geTextMinFPS; 69 71 70 71 72 delete Render2D::getInstance(); 73 74 SDL_QuitSubSystem(SDL_INIT_VIDEO); 72 75 GraphicsEngine::singletonRef = NULL; 73 76 } … … 124 127 return -1; 125 128 // initialize SDL_VIDEO 126 if (SDL_Init (SDL_INIT_VIDEO) == -1)129 if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1) 127 130 { 128 131 PRINTF(1)("could not initialize SDL Video\n"); … … 133 136 134 137 // setting the Video Flags. 135 this->videoFlags = SDL_OPENGL | SDL_HWPALETTE | SDL_RESIZABLE | SDL_DOUBLEBUF ;138 this->videoFlags = SDL_OPENGL | SDL_HWPALETTE | SDL_RESIZABLE | SDL_DOUBLEBUF | SDL_GL_DOUBLEBUFFER; 136 139 137 140 /* query SDL for information about our video hardware */
Note: See TracChangeset
for help on using the changeset viewer.