lookingGlass: Use Cogl.Pipeline.new to construct new pipelines
new Cogl.Pipeline now constructs a GObject via g_object_new and not via cogl_pipeline_new. Construction via g_object_new requires a some construct only parameters so either way, this call doesn't work anymore. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3144 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3057>
This commit is contained in:
parent
02c8249e0b
commit
6b9c04de6e
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user