Skip to content

Commit

Permalink
GL3/GLES2 compile fix
Browse files Browse the repository at this point in the history
It has no GL_POINT_SMOOTH
  • Loading branch information
remoe authored Jun 23, 2017
1 parent 8a372d9 commit 4593c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osgEarthUtil/RTTPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ RTTPicker::getOrCreatePickContext(osg::View* view)
rttSS->setMode(GL_LIGHTING, disable );
rttSS->setMode(GL_CULL_FACE, disable );
rttSS->setMode(GL_ALPHA_TEST, disable );
#if !(defined(OSG_GLES2_AVAILABLE) || defined(OSG_GL3_AVAILABLE) )
rttSS->setMode(GL_POINT_SMOOTH, disable );
#endif
rttSS->setMode(GL_LINE_SMOOTH, disable );

// Disabling GL_BLEND is not enough, because osg::Text re-enables it
Expand Down

0 comments on commit 4593c65

Please sign in to comment.