From: Brian Paul Date: Sat, 20 Mar 2010 18:04:52 +0000 (-0600) Subject: mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61753c4bf7f6948aad208eddc7a2bae24763e028;p=mesa.git mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE --- diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 0fde89b5079..714c4cfd523 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -940,6 +940,18 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, "glGetTexLevelParameter[if]v(pname)"); } break; + case GL_TEXTURE_SHARED_SIZE: + if (ctx->VersionMajor >= 3) { + /* XXX return number of exponent bits for shared exponent texture + * formats, like GL_RGB9_E5. + */ + *params = 0; + } + else { + _mesa_error(ctx, GL_INVALID_ENUM, + "glGetTexLevelParameter[if]v(pname)"); + } + break; /* GL_ARB_texture_compression */ case GL_TEXTURE_COMPRESSED_IMAGE_SIZE: