Module: Mesa Branch: master Commit: fbc419314e9d1f06d624d8e3997394db7f829f63 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbc419314e9d1f06d624d8e3997394db7f829f63
Author: Brian Paul <bri...@vmware.com> Date: Mon Oct 31 10:52:56 2011 -0600 mesa: glGetTexParameter support for GL_ARB_texture_storage --- src/mesa/main/texparam.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index dc5ee33..a242448 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; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit