Changeset 10765

Show
Ignore:
Timestamp:
11/17/09 16:54:20 (4 years ago)
Author:
robert
Message:

Moved across to use OSG_FIXED_FUNCTION_AVAILABLE

Location:
OpenSceneGraph/trunk/src
Files:
3 modified

Legend:

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

    r10743 r10765  
    4747    _modelView = _identity; 
    4848 
    49     #if defined(OSG_GLES2_AVAILABLE) || defined(OSG_GL3_AVAILABLE)     
     49    #if !defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    5050        _useModelViewAndProjectionUniforms = true; 
    5151        _useVertexAttributeAliasing = true; 
  • OpenSceneGraph/trunk/src/osg/StateSet.cpp

    r10745 r10765  
    535535    setMode(GL_DEPTH_TEST,StateAttribute::ON); 
    536536 
    537     #if !defined(OSG_GLES2_AVAILABLE) 
     537    #if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    538538 
    539539        // setAttributeAndModes(new AlphaFunc,StateAttribute::OFF); 
  • OpenSceneGraph/trunk/src/osgUtil/SceneView.cpp

    r10764 r10765  
    212212    if ((options & HEADLIGHT) || (options & SKY_LIGHT)) 
    213213    { 
    214         #if !defined(OSG_GLES2_AVAILABLE) 
     214        #if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    215215            _lightingMode=(options&HEADLIGHT) ? HEADLIGHT : SKY_LIGHT; 
    216216            _light = new osg::Light; 
     
    227227        #endif 
    228228         
    229         #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) 
     229        #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    230230            osg::LightModel* lightmodel = new osg::LightModel; 
    231231            lightmodel->setAmbientIntensity(osg::Vec4(0.1f,0.1f,0.1f,1.0f)); 
     
    273273    _globalStateSet->setGlobalDefaults(); 
    274274 
    275     #if !defined(OSG_GLES2_AVAILABLE) 
     275    #if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    276276        // set up an texture environment by default to speed up blending operations. 
    277277         osg::TexEnv* texenv = new osg::TexEnv; 
     
    677677    if (_lightingMode!=NO_SCENEVIEW_LIGHT) 
    678678    { 
    679         #if !defined(OSG_GLES2_AVAILABLE) 
     679        #if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    680680            // add GL_LIGHTING mode 
    681681            _globalStateSet->setMode(GL_LIGHTING, osg::StateAttribute::ON); 
     
    947947#endif 
    948948 
    949     #if !defined(OSG_GLES2_AVAILABLE) 
     949    #if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) 
    950950        switch(_lightingMode) 
    951951        {