mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
81855f22cd
commit
e0c9361a7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue