From: Brian Paul Date: Fri, 14 Apr 2017 18:42:40 +0000 (-0600) Subject: mesa: print target string in glBindTexture() error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a7e3693c8efe540256739eff233b2e88ab293a6;p=mesa.git mesa: print target string in glBindTexture() error message Reviewed-by: Edward O'Callaghan Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index ad644ca1ca3..00feb975522 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1663,7 +1663,8 @@ _mesa_BindTexture( GLenum target, GLuint texName ) targetIndex = _mesa_tex_target_to_index(ctx, target); if (targetIndex < 0) { - _mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target)"); + _mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target = %s)", + _mesa_enum_to_string(target)); return; } assert(targetIndex < NUM_TEXTURE_TARGETS);