diff --git a/cogl/cogl-material.c b/cogl/cogl-material.c index 853e55ab8..40bbd7ece 100644 --- a/cogl/cogl-material.c +++ b/cogl/cogl-material.c @@ -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); } }