Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/GLExtensions.cpp

    r12454 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    8282    if (*startOfWord && strcmp(extension, startOfWord) == 0) 
    8383        return true; 
    84     
     84 
    8585   return false; 
    8686} 
     
    9898    // first check to see if GL version number of recent enough. 
    9999    bool result = requiredGLVersion <= osg::getGLVersionNumber(); 
    100      
     100 
    101101    if (!result) 
    102     {     
     102    { 
    103103        // if not already set up, initialize all the per graphic context values. 
    104104        if (!s_glInitializedList[contextID]) 
     
    188188 
    189189            if (wglextensions) 
    190             {     
     190            { 
    191191                const char* startOfWord = wglextensions; 
    192192                const char* endOfWord; 
     
    214214        result = extensionSet.find(extension)!=extensionSet.end(); 
    215215    } 
    216      
     216 
    217217    // now see if extension is in the extension disabled list 
    218218    bool extensionDisabled = false; 
     
    223223        if (!disableString.empty()) 
    224224        { 
    225                      
     225 
    226226            std::string::size_type pos=0; 
    227227            while ( pos!=std::string::npos && (pos=disableString.find(extension,pos))!=std::string::npos ) 
     
    229229                std::string::size_type previousColon = disableString.find_last_of(':',pos); 
    230230                std::string::size_type previousSemiColon = disableString.find_last_of(';',pos); 
    231                  
     231 
    232232                std::string renderer = ""; 
    233233                if (previousColon!=std::string::npos) 
     
    239239                if (!renderer.empty()) 
    240240                { 
    241                  
     241 
    242242                    // remove leading spaces if they exist. 
    243243                    std::string::size_type leadingSpaces = renderer.find_first_not_of(' '); 
     
    250250 
    251251                } 
    252                              
     252 
    253253                if (renderer.empty()) 
    254254                { 
     
    256256                    break; 
    257257                } 
    258                  
     258 
    259259                if (rendererString.find(renderer)!=std::string::npos) 
    260260                { 
    261261                    extensionDisabled = true; 
    262262                    break; 
    263                      
    264                 } 
    265                  
     263 
     264                } 
     265 
    266266                // move the position in the disable string along so that the same extension is found multiple times 
    267267                ++pos;