diff --git a/HACKING.md b/HACKING.md index fe8078446..7672d1f2c 100644 --- a/HACKING.md +++ b/HACKING.md @@ -168,7 +168,7 @@ you to inherit from a type to use it, you can do so: let coglContext = framebuffer.get_context(); let alloc = this.get_allocation_box(); - let pipeline = new Cogl.Pipeline(coglContext); + let pipeline = Cogl.Pipeline.new(coglContext); pipeline.set_color4ub(255, 0, 0, 255); framebuffer.draw_rectangle(pipeline, diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 9f5575f75..b9f8589a3 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -542,7 +542,7 @@ class RedBorderEffect extends Clutter.Effect { let color = new Cogl.Color(); color.init_from_4ub(0xff, 0, 0, 0xc4); - this._pipeline = new Cogl.Pipeline(coglContext); + this._pipeline = Cogl.Pipeline.new(coglContext); this._pipeline.set_color(color); }