From 0ea06dec41f73a8ac59e72724a1c56a213796d5c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 7 Jun 2014 07:31:10 +0100 Subject: utils: remove deprecation warning --- clutter-gst/clutter-gst-util.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'clutter-gst') diff --git a/clutter-gst/clutter-gst-util.c b/clutter-gst/clutter-gst-util.c index fb25abb..c045142 100644 --- a/clutter-gst/clutter-gst-util.c +++ b/clutter-gst/clutter-gst-util.c @@ -271,11 +271,12 @@ clutter_gst_create_blank_frame (const ClutterColor *color) const guint8 *color_ptr = color != NULL ? (const guint8 *) color : (const guint8 *) &black_color; - texture = cogl_texture_new_from_data (1, 1, COGL_TEXTURE_NONE, - COGL_PIXEL_FORMAT_RGBA_8888, - COGL_PIXEL_FORMAT_RGBA_8888, - 1, - color_ptr); + texture = cogl_texture_2d_new_from_data (clutter_gst_get_cogl_context (), + 1, 1, + COGL_PIXEL_FORMAT_RGBA_8888, + 1, + color_ptr, + NULL); frame->pipeline = cogl_pipeline_new (clutter_gst_get_cogl_context ()); cogl_pipeline_set_layer_texture (frame->pipeline, 0, texture); -- cgit v1.2.1