From: Brian Paul Date: Mon, 31 Oct 2011 16:52:56 +0000 (-0600) Subject: mesa: glGetTexParameter support for GL_ARB_texture_storage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbc419314e9d1f06d624d8e3997394db7f829f63;p=mesa.git mesa: glGetTexParameter support for GL_ARB_texture_storage --- diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index dc5ee33a2b2..a2424484422 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1204,6 +1204,12 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params ) *params = (GLfloat) obj->Sampler.CubeMapSeamless; break; + case GL_TEXTURE_IMMUTABLE_FORMAT: + if (!ctx->Extensions.ARB_texture_storage) + goto invalid_pname; + *params = (GLfloat) obj->Immutable; + break; + default: goto invalid_pname; } @@ -1338,6 +1344,12 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params ) *params = (GLint) obj->Sampler.CubeMapSeamless; break; + case GL_TEXTURE_IMMUTABLE_FORMAT: + if (!ctx->Extensions.ARB_texture_storage) + goto invalid_pname; + *params = (GLint) obj->Immutable; + break; + default: goto invalid_pname; }