Added EGL support into build system for GLES1 + GLES2.
Added EGL support into GraphicsWindowX11.
This commit is contained in:
@@ -165,10 +165,12 @@ public:
|
||||
xform->setMatrix( osg::Matrix::scale( sx, sy, sz ) );
|
||||
xform->addChild( node );
|
||||
|
||||
// turn on GL_NORMALIZE to prevent problems with scaled normals
|
||||
osg::StateSet* ss = xform->getOrCreateStateSet();
|
||||
ss->setMode( GL_NORMALIZE, osg::StateAttribute::ON );
|
||||
|
||||
#ifndef OSG_GLES2_AVAILABLE
|
||||
// turn on GL_NORMALIZE to prevent problems with scaled normals
|
||||
osg::StateSet* ss = xform->getOrCreateStateSet();
|
||||
ss->setMode( GL_NORMALIZE, osg::StateAttribute::ON );
|
||||
#endif
|
||||
|
||||
return xform;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user