mesa: add const qualifier to _mesa_is_legal_format_and_type()
This commit is contained in:
parent
113c1832b1
commit
7faf521fad
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue