From 1e1f69febcb14fe7e7ebdcda8501f20168b21237 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Matveyev" Date: Fri, 6 Oct 2017 17:37:50 +0300 Subject: [PATCH] Added defines: GL_ALPHA4/8/12/16 in osg/Image, this will fix compilation error while building for GLES2 --- include/osg/Image | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osg/Image b/include/osg/Image index 3a90175ea..663761c80 100644 --- a/include/osg/Image +++ b/include/osg/Image @@ -68,6 +68,10 @@ #endif #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GLES3_AVAILABLE) || defined(OSG_GL3_AVAILABLE) + #define GL_ALPHA4 0x803B + #define GL_ALPHA8 0x803C + #define GL_ALPHA12 0x803D + #define GL_ALPHA16 0x803E #define GL_BITMAP 0x1A00 #define GL_COLOR_INDEX 0x1900 #define GL_INTENSITY12 0x804C