MRuby-Binding: Reduce number of object allocations
This is the same change as f067e0eff8
,
applied to the mruby backend.
This commit is contained in:
parent
bdcf1503bd
commit
0ab543fd75
11 changed files with 28 additions and 63 deletions
|
@ -54,7 +54,7 @@ MRB_METHOD(viewportInitialize)
|
|||
v = new Viewport(x, y, width, height);
|
||||
}
|
||||
|
||||
setPrivateData(mrb, self, v, ViewportType);
|
||||
setPrivateData(self, v, ViewportType);
|
||||
|
||||
/* Wrap property objects */
|
||||
v->setRect(new Rect(*v->getRect()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue