From e3a1f664b9d0e3e0160b339de48f29c7ff757bf4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Feb 2010 08:48:02 +0000 Subject: [PATCH] Seperated out the #define of GL_PERSPECTIVE_CORRECTION_HINT to fix GL3 build --- src/osgDB/ObjectWrapper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgDB/ObjectWrapper.cpp b/src/osgDB/ObjectWrapper.cpp index 956ed7986..ba77842ba 100644 --- a/src/osgDB/ObjectWrapper.cpp +++ b/src/osgDB/ObjectWrapper.cpp @@ -48,8 +48,11 @@ #include -#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) +#ifndef GL_PERSPECTIVE_CORRECTION_HINT #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 +#endif + +#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) #define GL_POLYGON_SMOOTH_HINT 0x0C53 #define GL_LINE_SMOOTH_HINT 0x0C52 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B