Module: Mesa Branch: main Commit: 78c95b286583c9c2b0ece6de925bb46d903357b5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=78c95b286583c9c2b0ece6de925bb46d903357b5
Author: Eric Engestrom <[email protected]> Date: Mon Feb 27 15:24:36 2023 +0000 glsl: align definition of _mesa_problem with the one in main/error.h The ctx pointer not used by that function anyway, so const'ing it makes no difference. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21557> --- src/compiler/glsl/standalone_scaffolding.cpp | 2 +- src/compiler/glsl/standalone_scaffolding.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp index 1d84d674f99..5cd52e6db90 100644 --- a/src/compiler/glsl/standalone_scaffolding.cpp +++ b/src/compiler/glsl/standalone_scaffolding.cpp @@ -55,7 +55,7 @@ _mesa_warning(struct gl_context *ctx, const char *fmt, ...) } void -_mesa_problem(struct gl_context *ctx, const char *fmt, ...) +_mesa_problem(const struct gl_context *ctx, const char *fmt, ...) { va_list vargs; (void) ctx; diff --git a/src/compiler/glsl/standalone_scaffolding.h b/src/compiler/glsl/standalone_scaffolding.h index 083d56fe29d..404297641b0 100644 --- a/src/compiler/glsl/standalone_scaffolding.h +++ b/src/compiler/glsl/standalone_scaffolding.h @@ -38,7 +38,7 @@ extern "C" void _mesa_warning(struct gl_context *ctx, const char *fmtString, ... ); extern "C" void -_mesa_problem(struct gl_context *ctx, const char *fmtString, ... ); +_mesa_problem(const struct gl_context *ctx, const char *fmtString, ... ); extern "C" void _mesa_reference_shader_program_data(struct gl_shader_program_data **ptr,
