Browse Source

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>
tags/mesa-10.1-rc1
Courtney Goeltzenleuchter 12 years ago
parent
commit
2cfbf84dad
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/mesa/main/texstorage.c

+ 7
- 0
src/mesa/main/texstorage.c View File

@@ -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 */

Loading…
Cancel
Save