summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-04-03 14:58:39 +0200
committerMichal Krol <michal@vmware.com>2009-04-03 14:59:25 +0200
commitd2ed91201e1abcc61e30b367c00c6e0f036d9214 (patch)
treeda0f39596b14f4cd8326428e801e2ae693ca1357
parentcc770e0a0cbb2c0ff4327ffb0bf20f52ccc218cc (diff)
util/debug: Initialise local variables.
-rw-r--r--src/gallium/auxiliary/util/u_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 1b984425b5..96a2222f9b 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -720,8 +720,8 @@ debug_dump_surface_bmp(const char *filename,
struct pipe_surface *surface)
{
struct pipe_transfer *transfer;
- struct pipe_texture *texture;
- struct pipe_screen *screen;
+ struct pipe_texture *texture = surface->texture;
+ struct pipe_screen *screen = texture->screen;
transfer = screen->get_tex_transfer(screen, texture, surface->face,
surface->level, surface->zslice,