OSDN Git Service

mesa: add const qualifier on _mesa_base_fbo_format()
authorBrian Paul <brianp@vmware.com>
Tue, 5 Dec 2017 19:05:18 +0000 (12:05 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Dec 2017 22:32:25 +0000 (15:32 -0700)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index 30287ab..d23916d 100644 (file)
@@ -1804,7 +1804,7 @@ _mesa_CreateRenderbuffers(GLsizei n, GLuint *renderbuffers)
  * \return the base internal format, or 0 if internalFormat is illegal
  */
 GLenum
-_mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat)
+_mesa_base_fbo_format(const struct gl_context *ctx, GLenum internalFormat)
 {
    /*
     * Notes: some formats such as alpha, luminance, etc. were added
index e4846e8..f52fd15 100644 (file)
@@ -112,7 +112,7 @@ extern GLboolean
 _mesa_is_legal_color_format(const struct gl_context *ctx, GLenum baseFormat);
 
 extern GLenum
-_mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat);
+_mesa_base_fbo_format(const struct gl_context *ctx, GLenum internalFormat);
 
 extern bool
 _mesa_detach_renderbuffer(struct gl_context *ctx,