material: only deference layer->texture for authority

In _cogl_material_layer_pre_paint we were mistakenly dereferencing the
layer->texture member for the passed layer instead of dereferencing the
texture state authority which was causing crashes in some cases.
This commit is contained in:
Robert Bragg 2010-08-06 14:12:22 +01:00
parent 3aca146215
commit eda852e78c

View File

@ -4931,7 +4931,7 @@ _cogl_material_layer_pre_paint (CoglMaterialLayer *layer)
|| min_filter == COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR)
flags |= COGL_TEXTURE_NEEDS_MIPMAP;
_cogl_texture_pre_paint (layer->texture, flags);
_cogl_texture_pre_paint (texture_authority->texture, flags);
}
}