From: Jakob Bornecrantz Date: Fri, 28 Aug 2009 21:33:42 +0000 (+0100) Subject: i915g: Don't forget to init buffer ptrs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=644060c0252d8d377e2be35067b30305b0569653;p=mesa.git i915g: Don't forget to init buffer ptrs --- 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 f58334ffffa..2d8e9f1a24e 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,