COGL API changes
This commit is contained in:
parent
c33f18c4d5
commit
f53773f58e
@ -218,7 +218,11 @@ class RealmFrameEffect extends Clutter.Effect {
|
||||
let s = this._color.to_string();
|
||||
|
||||
let cogl_color = new Cogl.Color();
|
||||
cogl_color.init_from_4ub(this._color.red, this._color.green, this._color.blue, 0xc4);
|
||||
cogl_color.init_from_4f(
|
||||
this._color.red / 255.0,
|
||||
this._color.green / 255.0,
|
||||
this._color.blue / 255.0,
|
||||
0xc4 / 255.0);
|
||||
this._pipeline.set_color(cogl_color);
|
||||
}
|
||||
|
||||
@ -303,7 +307,7 @@ class RealmFrameEffect extends Clutter.Effect {
|
||||
if (!this._pipeline) {
|
||||
let framebuffer = ctx.get_framebuffer();
|
||||
let coglContext = framebuffer.get_context();
|
||||
this._pipeline = new Cogl.Pipeline(coglContext);
|
||||
this._pipeline = Cogl.Pipeline.new(coglContext);
|
||||
this.setPipelineColor();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user