mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE
authorBrian Paul <brianp@vmware.com>
Sat, 20 Mar 2010 18:04:52 +0000 (12:04 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 20 Mar 2010 18:06:36 +0000 (12:06 -0600)
src/mesa/main/texparam.c

index 0fde89b5079c71b4fd8a788e5aee72169899dc4c..714c4cfd523ce60dff99da2afcd9612b0b63b703 100644 (file)
@@ -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: