Index: /OpenSceneGraph/trunk/src/osgViewer/PixelBufferCarbon.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osgViewer/PixelBufferCarbon.cpp (revision 7039)
+++ /OpenSceneGraph/trunk/src/osgViewer/PixelBufferCarbon.cpp (revision 10005)
@@ -28,7 +28,7 @@
     attributes.push_back(AGL_RGBA);
     if (!traits->pbuffer) 
-		attributes.push_back(AGL_COMPLIANT);
-	else
-		attributes.push_back(AGL_CLOSEST_POLICY);
+        attributes.push_back(AGL_COMPLIANT);
+    else
+        attributes.push_back(AGL_CLOSEST_POLICY);
     
     if (traits->doubleBuffer) attributes.push_back(AGL_DOUBLEBUFFER);
@@ -74,10 +74,10 @@
 bool PixelBufferCarbon::realizeImplementation() 
 {
-	if (!_valid) {
-		osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglChoosePixelFormat failed! " << aglErrorString(aglGetError()) << std::endl;
-		return false;
-	}
-	
-	AGLContext sharedContext = NULL;
+    if (!_valid) {
+        osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglChoosePixelFormat failed! " << aglErrorString(aglGetError()) << std::endl;
+        return false;
+    }
+    
+    AGLContext sharedContext = NULL;
 
     // get any shared GLX contexts    
@@ -95,34 +95,34 @@
         }
     }
-	
-	_context = aglCreateContext (_pixelformat, sharedContext);
-	
-	if (!_context) {
-		osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglCreateContext failed! " << aglErrorString(aglGetError()) << std::endl;
-		return false;
-	}
-	
+    
+    _context = aglCreateContext (_pixelformat, sharedContext);
+    
+    if (!_context) {
+        osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglCreateContext failed! " << aglErrorString(aglGetError()) << std::endl;
+        return false;
+    }
+    
 
-	
-	_realized = aglCreatePBuffer (_traits->width, _traits->height, _traits->target, GL_RGBA, _traits->level, &(_pbuffer));
-	if (!_realized) {
-		osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglCreatePBuffer failed! " << aglErrorString(aglGetError()) << std::endl;
-	}
-	
-	makeCurrentImplementation();
-	
-	_realized = aglSetPBuffer(_context, _pbuffer, _traits->face, _traits->level, 0);
-	if (!_realized) {
-		osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglSetPBuffer failed! " << aglErrorString(aglGetError()) << std::endl;
-	}
-	return _realized;
+    
+    _realized = aglCreatePBuffer (_traits->width, _traits->height, _traits->target, GL_RGBA, _traits->level, &(_pbuffer));
+    if (!_realized) {
+        osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglCreatePBuffer failed! " << aglErrorString(aglGetError()) << std::endl;
+    }
+    
+    makeCurrentImplementation();
+    
+    _realized = aglSetPBuffer(_context, _pbuffer, _traits->face, _traits->level, 0);
+    if (!_realized) {
+        osg::notify(osg::WARN) << "PixelBufferCarbon::realizeImplementation() aglSetPBuffer failed! " << aglErrorString(aglGetError()) << std::endl;
+    }
+    return _realized;
 }
 
 void  PixelBufferCarbon::closeImplementation()  
 { 
-	if (_pbuffer) aglDestroyPBuffer(_pbuffer);
-	if (_context) aglDestroyContext(_context);
-	if (_pixelformat) aglDestroyPixelFormat(_pixelformat);
-	_valid = _realized = false;
+    if (_pbuffer) aglDestroyPBuffer(_pbuffer);
+    if (_context) aglDestroyContext(_context);
+    if (_pixelformat) aglDestroyPixelFormat(_pixelformat);
+    _valid = _realized = false;
 }
 
@@ -131,5 +131,5 @@
 bool  PixelBufferCarbon::makeCurrentImplementation() 
 { 
-	return (_realized) ? (aglSetCurrentContext(_context) == GL_TRUE) : false;
+    return (_realized) ? (aglSetCurrentContext(_context) == GL_TRUE) : false;
 }
         
@@ -137,5 +137,5 @@
   * Pure virtual - must be implemented by concrate implementations of GraphicsContext. */
 bool  PixelBufferCarbon::makeContextCurrentImplementation(GraphicsContext* /*readContext*/)  { 
-	return makeCurrentImplementation();
+    return makeCurrentImplementation();
 }
 
@@ -143,5 +143,5 @@
 bool PixelBufferCarbon::releaseContextImplementation() 
 {  
-	 return (aglSetCurrentContext(NULL) == GL_TRUE);
+     return (aglSetCurrentContext(NULL) == GL_TRUE);
 }
 
@@ -151,5 +151,5 @@
 void PixelBufferCarbon::bindPBufferToTextureImplementation( GLenum buffer ){ 
 
-	osg::notify(osg::NOTICE)<<"GraphicsWindow::void bindPBufferToTextureImplementation(..) not implemented."<<std::endl; 
+    osg::notify(osg::NOTICE)<<"GraphicsWindow::void bindPBufferToTextureImplementation(..) not implemented."<<std::endl; 
 }
 
@@ -158,11 +158,11 @@
 void PixelBufferCarbon::swapBuffersImplementation()  
 { 
-	 aglSwapBuffers(_context);
+     aglSwapBuffers(_context);
 }
    
-		
+        
 PixelBufferCarbon::~PixelBufferCarbon() 
 {
-	close(true);
+    close(true);
 }
 
