diff options
author | Robert Bragg <robert.bragg@intel.com> | 2014-03-14 16:45:04 +0000 |
---|---|---|
committer | Robert Bragg <robert.bragg@intel.com> | 2014-03-20 17:34:04 +0000 |
commit | 0e2771a4a484b69d133bb05a4988fb85a5d54a0b (patch) | |
tree | e449afdaa09dfa6089c57b7701ce4974ceea7b93 /examples | |
parent | 9f8ab5d809662cbe7e78c7b46fe0af55704fd516 (diff) |
basic-video-player: don't try and sample mipmap
Since we don't generate a mipmap chain for uploaded video frames this
avoids setting the min filter to COGL_PIPELINE_FILTER_LINEAR_MIPMAP_LINEAR.
Since COGL_PIPELINE_FILTER_LINEAR is the default and since it is also
dubious that cogl-basic-video-player is directly manipulating layers
that are conceptually internal to cogl-gst this removes the loop that
updates the filtering for cogl-gst layers.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cogl-basic-video-player.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/cogl-basic-video-player.c b/examples/cogl-basic-video-player.c index 34678f32..f894c38d 100644 --- a/examples/cogl-basic-video-player.c +++ b/examples/cogl-basic-video-player.c @@ -194,24 +194,8 @@ _set_up_pipeline (gpointer instance, { Data* data = (Data*) user_data; - /* - The cogl-gst sink, depending on the video format, can use up to 3 texture - layers to render a frame. To avoid overwriting frame data, the first - free layer in the cogl pipeline needs to be queried before adding any - additional textures. - */ - - int free_layer = cogl_gst_video_sink_get_free_layer (data->sink); data->video_pipeline = cogl_gst_video_sink_get_pipeline (data->sink); - while (free_layer > 0) - { - free_layer--; - cogl_pipeline_set_layer_filters (data->video_pipeline, free_layer, - COGL_PIPELINE_FILTER_LINEAR_MIPMAP_LINEAR, - COGL_PIPELINE_FILTER_LINEAR); - } - /* disable blending... */ cogl_pipeline_set_blend (data->video_pipeline, "RGBA = ADD (SRC_COLOR, 0)", NULL); |