diff options
author | Ilia Mirkin <[email protected]> | 2015-04-24 19:33:05 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-27 12:06:54 -0400 |
commit | dfb274af4c6e0991fa20af1606e45bea6f947fed (patch) | |
tree | ab33cca45dc08bb95b06fe18ccf6099369fc07fa /src/mesa/main/context.c | |
parent | 05e7f7f4388bde882b7ce74124000a4d435affff (diff) |
mesa: the function name appears to have a gl prefix already
Currently we're producing errors like
User error: GL_INVALID_OPERATION in glglDeleteProgramsARB(invalid call)
And noop_warn appears to be called with the full function name. Don't
prepend a gl prefix.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index f36fb8dd66c..4aaf8b1af57 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -894,14 +894,14 @@ update_default_objects(struct gl_context *ctx) * If there's no current OpenGL context for the calling thread, we can * print a message to stderr. * - * \param name the name of the OpenGL function, without the "gl" prefix + * \param name the name of the OpenGL function */ static void nop_handler(const char *name) { GET_CURRENT_CONTEXT(ctx); if (ctx) { - _mesa_error(ctx, GL_INVALID_OPERATION, "gl%s(invalid call)", name); + _mesa_error(ctx, GL_INVALID_OPERATION, "%s(invalid call)", name); } #if defined(DEBUG) else if (getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG")) { |