summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/debug.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-09-30 08:15:30 -0600
committerBrian Paul <brianp@vmware.com>2011-09-30 08:15:30 -0600
commit4368a657670f1f3f13d8497f749cb5439f91529e (patch)
tree71965b364e065ee9cc360eb0a0e99cd3be0e7553 /src/mesa/main/debug.c
parentd742a64909b2b414fc94b6f525a13ce09ca7f9f7 (diff)
downloadexternal_mesa3d-4368a657670f1f3f13d8497f749cb5439f91529e.zip
external_mesa3d-4368a657670f1f3f13d8497f749cb5439f91529e.tar.gz
external_mesa3d-4368a657670f1f3f13d8497f749cb5439f91529e.tar.bz2
mesa: simplify parameters to GetTexImage() driver hook
The target, level and texObj can be obtained through the texImage parameter. We could make similar changes for the TexImage() hooks too. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/debug.c')
-rw-r--r--src/mesa/main/debug.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c
index 0a393e5..6e695d1 100644
--- a/src/mesa/main/debug.c
+++ b/src/mesa/main/debug.c
@@ -268,9 +268,7 @@ write_texture_image(struct gl_texture_object *texObj,
store = ctx->Pack; /* save */
ctx->Pack = ctx->DefaultPacking;
- ctx->Driver.GetTexImage(ctx, texObj->Target, level,
- GL_RGBA, GL_UNSIGNED_BYTE,
- buffer, texObj, img);
+ ctx->Driver.GetTexImage(ctx, GL_RGBA, GL_UNSIGNED_BYTE, buffer, img);
/* make filename */
_mesa_snprintf(s, sizeof(s), "/tmp/tex%u.l%u.f%u.ppm", texObj->Name, level, face);