mesa: add const qualifier to _mesa_is_legal_format_and_type()
[mesa.git] / src / mesa / main / image.c
index 65b7a62b528e616f1f69040f8ef4498c3dec8068..a945ba2e1463aedf6b9d240afade9dc12a6cb086 100644 (file)
@@ -368,7 +368,8 @@ _mesa_bytes_per_pixel( GLenum format, GLenum type )
  * otherwise.
  */
 GLboolean
-_mesa_is_legal_format_and_type( struct gl_context *ctx, GLenum format, GLenum type )
+_mesa_is_legal_format_and_type(const struct gl_context *ctx,
+                               GLenum format, GLenum type)
 {
    switch (format) {
       case GL_COLOR_INDEX: