From 818dee31d8582ef39ff99283b82c24c0f9fe6da3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 Jan 2018 10:04:28 +0000 Subject: [PATCH] Fixed build with GLES2 --- src/osg/Sampler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/osg/Sampler.cpp b/src/osg/Sampler.cpp index 803362d13..c2f89443b 100644 --- a/src/osg/Sampler.cpp +++ b/src/osg/Sampler.cpp @@ -27,6 +27,19 @@ #define GL_TEXTURE_WRAP_R 0x2804 #endif +#ifndef GL_TEXTURE_COMPARE_MODE +#define GL_TEXTURE_COMPARE_MODE 0x884C +#endif + +#ifndef GL_TEXTURE_COMPARE_FUNC +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#endif + +#ifndef GL_TEXTURE_LOD_BIAS +#define GL_TEXTURE_LOD_BIAS 0x8501 +#endif + + using namespace osg; Sampler::Sampler(): StateAttribute(),