Commit 23c8169f by Geoff Lang

Add support for GL_NUM_EXTENSIONS.

TRAC #23704 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang
parent 56702e6d
#define MAJOR_VERSION 2
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 2005
#define BUILD_REVISION 2006
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -1889,6 +1889,9 @@ bool Context::getIntegerv(GLenum pname, GLint *params)
case GL_PIXEL_UNPACK_BUFFER_BINDING:
*params = mState.pixelUnpackBuffer.id();
break;
case GL_NUM_EXTENSIONS:
*params = static_cast<GLint>(getNumExtensions());
break;
default:
return false;
}
......@@ -2142,6 +2145,7 @@ bool Context::getQueryParameterInfo(GLenum pname, GLenum *type, unsigned int *nu
case GL_VERTEX_ARRAY_BINDING:
case GL_MAX_VERTEX_UNIFORM_COMPONENTS:
case GL_MAX_FRAGMENT_UNIFORM_COMPONENTS:
case GL_NUM_EXTENSIONS:
{
*type = GL_INT;
*numParams = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment