mesa: add const qualifer on _mesa_is_compressed_format()
authorBrian Paul <brianp@vmware.com>
Fri, 22 May 2015 23:39:32 +0000 (16:39 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 26 May 2015 15:58:09 +0000 (09:58 -0600)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/main/glformats.c
src/mesa/main/glformats.h

index 8ced5794938835a0d6778a52d3dbda88a6fb1b9e..6a77c916a9c695b630493e73ad3e3f6b02918ae4 100644 (file)
@@ -1200,7 +1200,7 @@ _mesa_is_depth_or_stencil_format(GLenum format)
  * \return GL_TRUE if compressed, GL_FALSE if uncompressed
  */
 GLboolean
-_mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
+_mesa_is_compressed_format(const struct gl_context *ctx, GLenum format)
 {
    switch (format) {
    case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
index e1ecd64d5f9b439381f24e95ddd3e31ab549e3e7..8881cb7d86bdd6ffb2f9b42a4d2e5fd60dd20a37 100644 (file)
@@ -96,7 +96,7 @@ extern GLboolean
 _mesa_is_depth_or_stencil_format(GLenum format);
 
 extern GLboolean
-_mesa_is_compressed_format(struct gl_context *ctx, GLenum format);
+_mesa_is_compressed_format(const struct gl_context *ctx, GLenum format);
 
 extern GLenum
 _mesa_base_format_to_integer_format(GLenum format);