st/dri: fix missing array size init.

Init array size to 1,

reported by bnf on irc.
This commit is contained in:
Dave Airlie 2011-03-01 18:29:24 +10:00
parent 2d62e39c62
commit 02448f2241

View file

@ -317,6 +317,7 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
templ.width0 = width;
templ.height0 = height;
templ.depth0 = 1;
templ.array_size = 1;
buffer->resource =
screen->base.screen->resource_create(screen->base.screen, &templ);