From: Brian Paul Date: Tue, 5 Dec 2017 19:05:18 +0000 (-0700) Subject: mesa: add const qualifier on _mesa_base_fbo_format() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca78b6b4f4230fd4492c26ff917cb941835fc57c;p=mesa.git mesa: add const qualifier on _mesa_base_fbo_format() Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 30287abf7c8..d23916d1ad7 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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 diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index e4846e88dc4..f52fd15526d 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -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,