r300: Fix crash in cubemap tree creation
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Feb 2009 19:45:01 +0000 (20:45 +0100)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Feb 2009 19:47:08 +0000 (20:47 +0100)
commit2d9471b28159b9af952c6a87868ff648a6055c55
tree1dd25e94719533f397e7325420595f77fab65788
parent9a26164f3525c31607e3e676e0d41e496dada4c2
r300: Fix crash in cubemap tree creation

The mip tree creation would crash if the first baselevel image to be uploaded
was not the positive-x image.

Found with Sauerbraten, also added a regression test to Piglit.

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c