Avoid failing assertion in intel_miptree_set_image_offset() with cube maps.

Cube maps still aren't working quite correctly though.
This commit is contained in:
Michel Dänzer 2006-12-14 12:47:44 +01:00
parent 81855f22cd
commit e0c9361a7c

View file

@ -212,7 +212,7 @@ i945_miptree_layout(struct intel_mipmap_tree * mt)
y = mt->total_height - 4;
x = (face - 4) * 8;
}
else if (dim < 4) {
else if (dim < 4 && (face > 0 || mt->first_level > 0)) {
y = mt->total_height - 4;
x = face * 8;
}