Mesa (master): util/debug: Initialise local variables.

Michał Król michal at kemper.freedesktop.org
Fri Apr 3 12:59:37 UTC 2009


Module: Mesa
Branch: master
Commit: d2ed91201e1abcc61e30b367c00c6e0f036d9214
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2ed91201e1abcc61e30b367c00c6e0f036d9214

Author: Michal Krol <michal at vmware.com>
Date:   Fri Apr  3 14:58:39 2009 +0200

util/debug: Initialise local variables.

---

 src/gallium/auxiliary/util/u_debug.c |    4 ++--
 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 1b98442..96a2222 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,




More information about the mesa-commit mailing list