From cbf5e6c85d587d6c0c897bc234281e06bc7cc9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 12 Dec 2022 16:37:05 +0100 Subject: [PATCH] cogl/pipeline: Simplify cogl_pipeline_get_layer_filters By using _cogl_pipeline_layer_get_filters. Part-of: --- cogl/cogl/cogl-pipeline-layer-state.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cogl/cogl/cogl-pipeline-layer-state.c b/cogl/cogl/cogl-pipeline-layer-state.c index 66d64196a..a0478ca10 100644 --- a/cogl/cogl/cogl-pipeline-layer-state.c +++ b/cogl/cogl/cogl-pipeline-layer-state.c @@ -1253,18 +1253,11 @@ cogl_pipeline_get_layer_filters (CoglPipeline *pipeline, CoglPipelineFilter *mag_filter) { CoglPipelineLayer *layer; - CoglPipelineLayer *authority; g_return_if_fail (cogl_is_pipeline (pipeline)); layer = _cogl_pipeline_get_layer (pipeline, layer_index); - - 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; + return _cogl_pipeline_layer_get_filters (layer, min_filter, mag_filter); } CoglPipelineFilter