mesa: add const qualifier to _mesa_is_legal_format_and_type()

This commit is contained in:
Brian Paul 2010-10-28 21:17:42 -06:00
parent 113c1832b1
commit 7faf521fad
2 changed files with 4 additions and 2 deletions

View 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:

View File

@ -52,7 +52,8 @@ extern GLint
_mesa_bytes_per_pixel( GLenum format, GLenum type );
extern 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);
extern GLboolean
_mesa_is_color_format(GLenum format);