- Timestamp:
- Oct 15, 2008, 2:48:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLStoredSceneHandler.cc
r850 r866 104 104 if (fMemoryForDisplayLists) { 105 105 fDisplayListId = glGenLists (1); 106 if ( !fDisplayListId) { // Could pre-allocate?106 if (glGetError() == GL_OUT_OF_MEMORY) { // Could pre-allocate? 107 107 G4cout << 108 108 "********************* WARNING! ********************" … … 172 172 } 173 173 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 } 174 180 if (fMemoryForDisplayLists) { 175 181 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 } 176 188 } 177 189 if (fReadyForTransients || !fMemoryForDisplayLists) { … … 283 295 // Make a List which calls the other lists. 284 296 fTopPODL = glGenLists (1); 285 if ( !fTopPODL) {297 if (glGetError() == GL_OUT_OF_MEMORY) { // Could pre-allocate? 286 298 G4cout << 287 299 "ERROR: G4OpenGLStoredSceneHandler::EndModeling: Failure to allocate" … … 301 313 } 302 314 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 } 303 321 } 304 322
Note: See TracChangeset
for help on using the changeset viewer.