diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-02-06 17:08:58 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-02-09 14:28:02 +0000 |
commit | 3ea6acc072d9f15fd651953f183d66a92a155ee0 (patch) | |
tree | d0540ecdeb02a1cc02d27cfd05013e5a9c34090d /examples/cogl-hello.c | |
parent | 269878217f6b2bfdd2b59425f2a9d3e0b6ce4c42 (diff) | |
download | cogl-3ea6acc072d9f15fd651953f183d66a92a155ee0.tar.gz |
buffer: explicitly relate buffers to a context
All CoglBuffer constructors now take an explicit CoglContext
constructor. This is part of the on going effort to adapt to Cogl API so
it no longer depends on a global, default context.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'examples/cogl-hello.c')
-rw-r--r-- | examples/cogl-hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cogl-hello.c b/examples/cogl-hello.c index 5b8b2068..152aa565 100644 --- a/examples/cogl-hello.c +++ b/examples/cogl-hello.c @@ -29,7 +29,7 @@ main (int argc, char **argv) cogl_onscreen_show (onscreen); fb = COGL_FRAMEBUFFER (onscreen); - triangle = cogl_primitive_new_p2c4 (COGL_VERTICES_MODE_TRIANGLES, + triangle = cogl_primitive_new_p2c4 (ctx, COGL_VERTICES_MODE_TRIANGLES, 3, triangle_vertices); pipeline = cogl_pipeline_new (); |