[clutter-gst: 7/11] utils: remove deprecation warning



commit 0ea06dec41f73a8ac59e72724a1c56a213796d5c
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sat Jun 7 07:31:10 2014 +0100

    utils: remove deprecation warning

 clutter-gst/clutter-gst-util.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]