Show
Ignore:
Timestamp:
08/02/06 21:55:03 (8 years ago)
Author:
robert
Message:

Added viewer.cleanup_frame() to all examples.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtexture3D/osgtexture3D.cpp

    r5340 r5381  
    289289        } 
    290290         
    291  
    292         // wait for all cull and draw threads to complete before exit. 
     291        // wait for all cull and draw threads to complete. 
     292        viewer.sync(); 
     293 
     294        // run a clean up frame to delete all OpenGL objects. 
     295        viewer.cleanup_frame(); 
     296 
     297        // wait for all the clean up frame to complete. 
    293298        viewer.sync(); 
    294299    }