st/nine: Fix locking CubeTexture surfaces.

Only one face of Cubetextures was locked when in DEFAULT Pool.
Fixes:
https://github.com/iXit/Mesa-3D/issues/129

CC: "12.0 13.0" <mesa-stable@lists.freedesktop.org>

Signed-off-by: Axel Davy <axel.davy@ens.fr>
(cherry picked from commit eed605a473)
This commit is contained in:
Axel Davy 2016-10-22 12:00:40 +02:00 committed by Emil Velikov
parent d576a2b0e6
commit a850e69b7e

View file

@ -447,6 +447,7 @@ NineSurface9_LockRect( struct NineSurface9 *This,
} else {
u_box_origin_2d(This->desc.Width, This->desc.Height, &box);
}
box.z = This->layer;
user_warn(This->desc.Format == D3DFMT_NULL);