st/egl: Set pipe_resource::array_size to 1.
authorChia-I Wu <olv@lunarg.com>
Fri, 3 Dec 2010 03:57:37 +0000 (11:57 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 3 Dec 2010 06:22:32 +0000 (14:22 +0800)
src/gallium/state_trackers/egl/common/egl_g3d_image.c

index 38627a52ec221b245855eee58850c43d70f8390e..b2d6b433c5e009ce2fb8c3c510e5662dacb812fc 100644 (file)
@@ -173,6 +173,7 @@ egl_g3d_reference_drm_buffer(_EGLDisplay *dpy, EGLint name,
    templ.width0 = attrs.Width;
    templ.height0 = attrs.Height;
    templ.depth0 = 1;
+   templ.array_size = 1;
 
    memset(&wsh, 0, sizeof(wsh));
    wsh.handle = (unsigned) name;