From bfa8d157c1b9abc946488715773c6ccd41ad81c4 Mon Sep 17 00:00:00 2001 From: Daniel Emminizer Date: Tue, 26 Jun 2018 14:44:34 -0400 Subject: [PATCH] GL_RG is now a support format in gluScaleImage(). --- src/osg/glu/libutil/mipmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osg/glu/libutil/mipmap.cpp b/src/osg/glu/libutil/mipmap.cpp index 96c958bd6..a0e98f4fc 100644 --- a/src/osg/glu/libutil/mipmap.cpp +++ b/src/osg/glu/libutil/mipmap.cpp @@ -3323,6 +3323,7 @@ static GLboolean legalFormat(GLenum format) case GL_RGBA: case GL_LUMINANCE: case GL_LUMINANCE_ALPHA: + case GL_RG: case GL_BGR: case GL_BGRA: return GL_TRUE; @@ -4874,6 +4875,7 @@ static GLint elements_per_group(GLenum format, GLenum type) case GL_BGR: return 3; case GL_LUMINANCE_ALPHA: + case GL_RG: return 2; case GL_RGBA: case GL_BGRA: