Ignore:
Timestamp:
Oct 15, 2008, 2:48:57 PM (16 years ago)
Author:
garnier
Message:

see history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredSceneHandler.cc

    r850 r866  
    104104  if (fMemoryForDisplayLists) {
    105105    fDisplayListId = glGenLists (1);
    106     if (!fDisplayListId) {  // Could pre-allocate?
     106    if (glGetError() == GL_OUT_OF_MEMORY) {  // Could pre-allocate?
    107107      G4cout <<
    108108        "********************* WARNING! ********************"
     
    172172  }
    173173
     174  if ((glGetError() == GL_TABLE_TOO_LARGE) || (glGetError() == GL_OUT_OF_MEMORY)) {  // Could close?
     175    G4cout <<
     176      "ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate"
     177      "  display List for fTopPODL - try OpenGL Immediated mode."
     178           << G4endl;
     179  }
    174180  if (fMemoryForDisplayLists) {
    175181    glEndList();
     182    if (glGetError() == GL_OUT_OF_MEMORY) {  // Could close?
     183      G4cout <<
     184        "ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate"
     185        "  display List for fTopPODL - try OpenGL Immediated mode."
     186             << G4endl;
     187    }
    176188  }
    177189  if (fReadyForTransients || !fMemoryForDisplayLists) {
     
    283295  // Make a List which calls the other lists.
    284296  fTopPODL = glGenLists (1);
    285   if (!fTopPODL) {
     297  if (glGetError() == GL_OUT_OF_MEMORY) {  // Could pre-allocate?
    286298    G4cout <<
    287299      "ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate"
     
    301313    }
    302314    glEndList ();
     315    if (glGetError() == GL_OUT_OF_MEMORY) {  // Could close?
     316      G4cout <<
     317        "ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate"
     318        "  display List for fTopPODL - try OpenGL Immediated mode."
     319             << G4endl;
     320    }
    303321  }
    304322
Note: See TracChangeset for help on using the changeset viewer.