diff --git a/src/osgDB/ObjectWrapper.cpp b/src/osgDB/ObjectWrapper.cpp index c1b06e7d9..ea9ec9289 100644 --- a/src/osgDB/ObjectWrapper.cpp +++ b/src/osgDB/ObjectWrapper.cpp @@ -41,11 +41,15 @@ #include #include #include +#include +#include +#include #include -#ifndef GL_PERSPECTIVE_CORRECTION_HINT +#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 + #define GL_POLYGON_SMOOTH_HINT 0x0C53 #endif using namespace osgDB;