summaryrefslogtreecommitdiff
path: root/clutter-gst
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2014-06-07 07:31:10 +0100
committerLionel Landwerlin <llandwerlin@gmail.com>2014-06-07 11:03:49 +0100
commit0ea06dec41f73a8ac59e72724a1c56a213796d5c (patch)
tree1887d52be7aefa2cf89caaea1936e8515264849a /clutter-gst
parent3c3f0ab8907bf971905c6f6fa2b87887e3b48af9 (diff)
downloadclutter-gst-0ea06dec41f73a8ac59e72724a1c56a213796d5c.tar.gz
utils: remove deprecation warning
Diffstat (limited to 'clutter-gst')
-rw-r--r--clutter-gst/clutter-gst-util.c11
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);