diff options
author | Brian Paul <[email protected]> | 2010-03-20 12:04:52 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-03-20 12:06:36 -0600 |
commit | 61753c4bf7f6948aad208eddc7a2bae24763e028 (patch) | |
tree | fced824779279478446c1d952a253b1a7735f014 /src/mesa | |
parent | 9fca5d2e39a530c633fbd374d3b1f1ec935601d1 (diff) |
mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 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: |