diff options
author | Mark Janes <[email protected]> | 2019-06-03 15:42:22 -0700 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-06-03 16:17:23 -0700 |
commit | 774a088f64e0984411204231ba8647b68f1b35c9 (patch) | |
tree | 817183a7312d0edc96cdb941358223b7dbd7630c /src/mesa/main/matrix.c | |
parent | 045aeccf0e10ea23cbec1f3e23ac0e69b8820394 (diff) |
mesa: Use string literals for format strings
Android build settings require format strings to be string literals.
Fixes: d2906293c43 "mesa: EXT_dsa add selectorless matrix stack functions"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110833
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/matrix.c')
-rw-r--r-- | src/mesa/main/matrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index d9898aff628..7d75a900e1b 100644 --- a/src/mesa/main/matrix.c +++ b/src/mesa/main/matrix.c @@ -94,7 +94,7 @@ get_named_matrix_stack(struct gl_context *ctx, GLenum mode, const char* caller) if (mode >= GL_TEXTURE0 && mode < (GL_TEXTURE0 + ctx->Const.MaxTextureCoordUnits)) { return &ctx->TextureMatrixStack[mode - GL_TEXTURE0]; } - _mesa_error(ctx, GL_INVALID_ENUM, caller); + _mesa_error(ctx, GL_INVALID_ENUM, "%s", caller); return NULL; } @@ -111,7 +111,7 @@ static void matrix_frustum(struct gl_matrix_stack* stack, nearval == farval || left == right || top == bottom) { - _mesa_error(ctx, GL_INVALID_VALUE, caller); + _mesa_error(ctx, GL_INVALID_VALUE, "%s", caller); return; } @@ -192,7 +192,7 @@ matrix_ortho(struct gl_matrix_stack* stack, bottom == top || nearval == farval) { - _mesa_error( ctx, GL_INVALID_VALUE, caller ); + _mesa_error( ctx, GL_INVALID_VALUE, "%s", caller ); return; } |