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:
parent
3aca146215
commit
eda852e78c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user