i965: miptree: silence coverity warning
This probably can't happen, but we're better off with initialized variables. CID: 1415114 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
0d190913bf
commit
f03f893cb8
|
@ -990,7 +990,7 @@ miptree_create_for_planar_image(struct brw_context *brw,
|
|||
__DRIimage *image, GLenum target)
|
||||
{
|
||||
struct intel_image_format *f = image->planar_format;
|
||||
struct intel_mipmap_tree *planar_mt;
|
||||
struct intel_mipmap_tree *planar_mt = NULL;
|
||||
|
||||
for (int i = 0; i < f->nplanes; i++) {
|
||||
const int index = f->planes[i].buffer_index;
|
||||
|
|
Loading…
Reference in New Issue