Show
Ignore:
Timestamp:
10/28/09 21:31:57 (4 years ago)
Author:
robert
Message:

Ported osgUtil, osgDB, osgGA, NodeKits? and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp

    r9540 r10699  
    314314            // add fake texture 
    315315            _stateset->setTextureAttribute(_baseTextureUnit,fakeTex,osg::StateAttribute::ON); 
    316             _stateset->setTextureMode(_baseTextureUnit,GL_TEXTURE_1D,osg::StateAttribute::OFF); 
    317316            _stateset->setTextureMode(_baseTextureUnit,GL_TEXTURE_2D,osg::StateAttribute::ON); 
    318317            _stateset->setTextureMode(_baseTextureUnit,GL_TEXTURE_3D,osg::StateAttribute::OFF); 
     318            #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) 
     319                _stateset->setTextureMode(_baseTextureUnit,GL_TEXTURE_1D,osg::StateAttribute::OFF); 
     320            #endif 
    319321        } 
    320322    }