浏览代码

Merge pull request #88 from UnityTech/kgdev

fix scissor in webgl.
/main
GitHub 6 年前
当前提交
8948d7f3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      Runtime/ui/painting/canvas_impl.cs

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) {

正在加载...
取消
保存