cogl/pipeline: Simplify cogl_pipeline_get_layer_filters
By using _cogl_pipeline_layer_get_filters. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2757>
This commit is contained in:
parent
1ad3d265e3
commit
cbf5e6c85d
@ -1253,18 +1253,11 @@ cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
|||||||
CoglPipelineFilter *mag_filter)
|
CoglPipelineFilter *mag_filter)
|
||||||
{
|
{
|
||||||
CoglPipelineLayer *layer;
|
CoglPipelineLayer *layer;
|
||||||
CoglPipelineLayer *authority;
|
|
||||||
|
|
||||||
g_return_if_fail (cogl_is_pipeline (pipeline));
|
g_return_if_fail (cogl_is_pipeline (pipeline));
|
||||||
|
|
||||||
layer = _cogl_pipeline_get_layer (pipeline, layer_index);
|
layer = _cogl_pipeline_get_layer (pipeline, layer_index);
|
||||||
|
return _cogl_pipeline_layer_get_filters (layer, min_filter, mag_filter);
|
||||||
authority =
|
|
||||||
_cogl_pipeline_layer_get_authority (layer,
|
|
||||||
COGL_PIPELINE_LAYER_STATE_SAMPLER);
|
|
||||||
|
|
||||||
*min_filter = authority->sampler_cache_entry->min_filter;
|
|
||||||
*mag_filter = authority->sampler_cache_entry->mag_filter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CoglPipelineFilter
|
CoglPipelineFilter
|
||||||
|
Loading…
Reference in New Issue
Block a user