mesa: print target string in glBindTexture() error message
authorBrian Paul <brianp@vmware.com>
Fri, 14 Apr 2017 18:42:40 +0000 (12:42 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Apr 2017 01:57:32 +0000 (19:57 -0600)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texobj.c

index ad644ca1ca3acf04811557113910cf463f491462..00feb975522df00b514e87f5a8bbb29242397a5e 100644 (file)
@@ -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);