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

Author: Jakob Bornecrantz <[email protected]>
Date:   Fri Aug 28 22:33:42 2009 +0100

i915g: Don't forget to init buffer ptrs

---

 src/gallium/winsys/drm/intel/gem/intel_be_device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_device.c 
b/src/gallium/winsys/drm/intel/gem/intel_be_device.c
index f58334f..2d8e9f1 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_be_device.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_be_device.c
@@ -286,7 +286,7 @@ intel_be_shared_handle_from_texture(struct drm_api *api,
                                     unsigned *pitch,
                                     unsigned *handle)
 {
-       struct pipe_buffer *buffer;
+       struct pipe_buffer *buffer = NULL;
        struct intel_be_buffer *buf;
        if (!intel_be_get_texture_buffer(api,
                                         texture,
@@ -315,7 +315,7 @@ intel_be_local_handle_from_texture(struct drm_api *api,
                                    unsigned *pitch,
                                    unsigned *handle)
 {
-       struct pipe_buffer *buffer;
+       struct pipe_buffer *buffer = NULL;
        if (!intel_be_get_texture_buffer(api,
                                         texture,
                                         &buffer,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to