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
069266f3ed
commit
8ac3cb29ea
@ -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