From 1859e27501af43eb06c551b916789f26cd49c857 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 13 Jul 2015 08:48:46 +0000 Subject: [PATCH] From Terry Welsh, "fThis fixes problem where new glClipControl feature would not compile for GLES2 profile" git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14943 16af8721-9629-0410-8352-f15c8da7e697 --- include/osg/GLDefines | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/osg/GLDefines b/include/osg/GLDefines index 79f73a83d..b3b44cea0 100644 --- a/include/osg/GLDefines +++ b/include/osg/GLDefines @@ -490,6 +490,15 @@ typedef char GLchar; #define GL_COMPUTE_SHADER_BIT 0x00000020 #endif +#ifndef GL_ARB_clip_control +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_CLIP_ORIGIN 0x935C +#define GL_CLIP_DEPTH_MODE 0x935D +#define GL_NEGATIVE_ONE_TO_ONE 0x935E +#define GL_ZERO_TO_ONE 0x935F +#endif + #ifndef GL_ARB_depth_clamp #define GL_DEPTH_CLAMP 0x864F #endif