Fix image_matches_texture_obj() MaxLevel check
authorWill Dyson <will.dyson@gmail.com>
Tue, 25 May 2010 05:10:20 +0000 (01:10 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 26 May 2010 22:17:28 +0000 (18:17 -0400)
commita9ee95651131e27d5acf3d10909b5b7e5c8d3e92
tree726a794471697d3bdad2887dc7c88237105bdf50
parentf49da110a81cc964100efa6a09e0fcdc7a35a935
Fix image_matches_texture_obj() MaxLevel check

When generating or uploading a new (higher) mipmap level for an image,
we can need to allocate a miptree for a level greater than
texObj->MaxLevel.

Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/radeon/radeon_texture.c