Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8308 in orxonox.OLD for branches/terrain


Ignore:
Timestamp:
Jun 10, 2006, 5:26:50 PM (18 years ago)
Author:
ponder
Message:
  • orxonox crashed on osx when a call to the opengl subsystem was done before the window was created. I changed the

order of initialisation in graphics_engine.cc.

  • orxonox.cc contained a bug when debug level is set unter 3
Location:
branches/terrain/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/graphics_engine.cc

    r8148 r8308  
    234234  // Enable default GL stuff
    235235  glEnable(GL_DEPTH_TEST);
    236 
     236  glEnable(GL_CULL_FACE);
     237  glCullFace(GL_FRONT);
    237238  Render2D::getInstance();
    238239
     
    287288  SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);  //Enable double buffering
    288289
    289   glEnable(GL_CULL_FACE);
    290   glCullFace(GL_FRONT);
    291290}
    292291
  • branches/terrain/src/orxonox.cc

    r8296 r8308  
    515515  // checking for existence of the configuration-files, or if the lock file is still used
    516516  if (showGui || (!File("./orxonox.conf").isFile() &&
    517                   !File(DEFAULT_CONFIG_FILE).isFile())
    518 #if DEBUG_LEVEL <= 3 // developers do not need to see the GUI, when orxonox fails
    519       || ResourceManager::isFile(DEFAULT_LOCK_FILE)
    520 #endif
    521      )
     517                  !File(DEFAULT_CONFIG_FILE).isFile() ) )
    522518  {
    523519    File lockFile(DEFAULT_LOCK_FILE);
Note: See TracChangeset for help on using the changeset viewer.