Yuncong Zhang 6 年前
当前提交
7a5baa3e
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 7
      Runtime/engine/UIWidgetsPanel.cs
  2. 5
      Runtime/ui/painting/canvas_impl.cs

7
Runtime/engine/UIWidgetsPanel.cs


get { return this._displayMetrics.viewInsets; }
}
protected override void OnDisable() {
D.assert(this._windowAdapter != null);
this._windowAdapter.OnDisable();
this._windowAdapter = null;
base.OnDisable();
}
protected virtual Widget createWidget() {
return null;
}

5
Runtime/ui/painting/canvas_impl.cs


foreach (var subLayer in layer.layers) {
cmdBuf.ReleaseTemporaryRT(subLayer.rtID);
}
if (layer.rtID == 0) {
// this is necessary for webgl2. not sure why... just to be safe to disable the scissor.
cmdBuf.DisableScissorRect();
}
}
void _clearLayer(RenderLayer layer) {

正在加载...
取消
保存