diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-02-21 13:22:17 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-02-21 17:46:11 +0000 |
commit | fbf94310fc175491090076de887d4bcc02a772ee (patch) | |
tree | 96844592d2b6070e13f07b0305e7d65d55519b9e /clutter/clutter-blur-effect.c | |
parent | 89518071f10ac937b739810c5165225d5644d3c2 (diff) | |
download | clutter-fbf94310fc175491090076de887d4bcc02a772ee.tar.gz |
Pass a CoglContext when calling cogl_pipeline_new
The experimental cogl_pipeline_new() api was recently changed so it
explicitly takes a CoglContext. This updates all calls to
cogl_pipeline_new() in clutter accordingly.
Diffstat (limited to 'clutter/clutter-blur-effect.c')
-rw-r--r-- | clutter/clutter-blur-effect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clutter/clutter-blur-effect.c b/clutter/clutter-blur-effect.c index 69811b1f5..1e36a0cbd 100644 --- a/clutter/clutter-blur-effect.c +++ b/clutter/clutter-blur-effect.c @@ -41,6 +41,8 @@ #include "config.h" #endif +#define CLUTTER_ENABLE_EXPERIMENTAL_API + #include "clutter-blur-effect.h" #include "cogl/cogl.h" @@ -239,8 +241,10 @@ clutter_blur_effect_init (ClutterBlurEffect *self) if (G_UNLIKELY (klass->base_pipeline == NULL)) { CoglSnippet *snippet; + CoglContext *ctx = + clutter_backend_get_cogl_context (clutter_get_default_backend ()); - klass->base_pipeline = cogl_pipeline_new (); + klass->base_pipeline = cogl_pipeline_new (ctx); snippet = cogl_snippet_new (COGL_SNIPPET_HOOK_TEXTURE_LOOKUP, box_blur_glsl_declarations, |