r200: fix texture level for compiz case

This commit is contained in:
Jerome Glisse 2009-04-12 15:51:31 +02:00
parent 02b130fd4b
commit 1fd76ae930

View file

@ -1422,8 +1422,8 @@ void set_re_cntl_d3d( GLcontext *ctx, int unit, GLboolean use_d3d )
*/
static void setup_hardware_state(r200ContextPtr rmesa, radeonTexObj *t)
{
const struct gl_texture_image *firstImage =
t->base.Image[0][t->mt->firstLevel];
int firstlevel = t->mt ? t->mt->firstLevel : 0;
const struct gl_texture_image *firstImage = t->base.Image[0][firstlevel];
GLint log2Width, log2Height, log2Depth, texelBytes;
if ( t->bo ) {