From 25627ffe656339da9477d47039d3ad561dd70fd3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 12 Oct 2020 16:53:37 -0700 Subject: [PATCH] mesa: Pass the correct caller string to _mesa_lookup_or_create_texture An actual bug found by the 'unused parameter' warning. :D Reviewed-by: Matt Turner Reviewed-by: Kristian H. Kristensen Part-of: --- src/mesa/main/texobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 1d057b88cea..8a2d2fe8659 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1822,7 +1822,7 @@ bind_texture(struct gl_context *ctx, GLenum target, GLuint texName, { struct gl_texture_object *newTexObj = _mesa_lookup_or_create_texture(ctx, target, texName, no_error, false, - "glBindTexture"); + caller); if (!newTexObj) return;