util/debug: Initialise local variables.
authorMichal Krol <michal@vmware.com>
Fri, 3 Apr 2009 12:58:39 +0000 (14:58 +0200)
committerMichal Krol <michal@vmware.com>
Fri, 3 Apr 2009 12:59:25 +0000 (14:59 +0200)
src/gallium/auxiliary/util/u_debug.c

index 1b984425b598072f4994a9197d75fe3d51d058c1..96a2222f9b680ae9c3d10cbad11ac57bcaaf9949 100644 (file)
@@ -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,