st/mesa: fix computation of last_level in GenerateMipmap
authorMarek Olšák <maraeo@gmail.com>
Sun, 11 Nov 2012 14:32:59 +0000 (15:32 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 12 Nov 2012 20:37:31 +0000 (21:37 +0100)
commite7dde5c8fb8ae6964bd5972d5962c2a26fc6ee0f
tree0e0991aa4de860c9c52740c814df975bb0c30729
parent6dd839f23a8ee7b6853f7320a2715df44040b358
st/mesa: fix computation of last_level in GenerateMipmap

Array textures were broken.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_gen_mipmap.c