Fix broken cubemap mipmap layout (the cubemap.c demo was segfaulting).
authorBrian <brian@i915.localnet.net>
Sun, 25 Feb 2007 01:14:53 +0000 (18:14 -0700)
committerBrian <brian@i915.localnet.net>
Sun, 25 Feb 2007 01:14:53 +0000 (18:14 -0700)
commit53170942e37ccdf58e06a2cfbfeef6c0ec086ee6
tree46b4fbd12d745036927053061d1e8a9b4cad7949
parentaeaad937b92ac0f5286343ed75c5c9f6876e2650
Fix broken cubemap mipmap layout (the cubemap.c demo was segfaulting).

In i915_miptree_layout() change the width, height parameters that are passed
to intel_miptree_set_level_info().  As it was, the width, height values were
larger than the source image dimensions and we segfaulted in memcpy() when
copying the original texture data into the texture buffer region.
This fix should probably be checked by someone more familiar with the code (Keith?)
src/mesa/drivers/dri/i915tex/i915_tex_layout.c