diff options
author | Courtney Goeltzenleuchter <courtney@lunarg.com> | 2013-11-05 14:25:06 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-11-17 19:57:17 -0800 |
commit | 2cfbf84dadc915b7075a3f1cbb569daf699d5ff0 (patch) | |
tree | d369b7f51584303110918f06ab43be6f9203a1e1 /src/mesa | |
parent | 53f89a436f5901b58f0d2f8385123f889649f2f3 (diff) |
mesa: Add API debug logging to TexStorage
Give glTexStorage* equivalent debug logging to glTexImage*.
Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstorage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 7bd8652b540..84b8f822431 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -365,6 +365,13 @@ texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat, GET_CURRENT_CONTEXT(ctx); + if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE)) + _mesa_debug(ctx, "glTexStorage%uD %s %d %s %d %d %d\n", + dims, + _mesa_lookup_enum_by_nr(target), levels, + _mesa_lookup_enum_by_nr(internalformat), + width, height, depth); + if (tex_storage_error_check(ctx, dims, target, levels, internalformat, width, height, depth)) { return; /* error was recorded */ |