mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
Fix cubemap layout
This commit is contained in:
parent
54b7eca7a0
commit
382ce985ac
1 changed files with 5 additions and 3 deletions
|
|
@ -76,10 +76,12 @@ GLboolean i915_miptree_layout( struct intel_mipmap_tree *mt )
|
|||
mt->offset[face][i].width = d;
|
||||
mt->offset[face][i].height = d;
|
||||
mt->offset[face][i].depth = 1;
|
||||
|
||||
d >>= 1;
|
||||
assert(d > 0);
|
||||
|
||||
if (d == 0)
|
||||
_mesa_printf("cube mipmap %d/%d (%d..%d) is 0x0\n",
|
||||
face, i, mt->first_level, mt->last_level);
|
||||
|
||||
d >>= 1;
|
||||
x += step_offsets[face][0] * d;
|
||||
y += step_offsets[face][1] * d;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue