浏览代码

fix scissor in webgl.

/main
kg 6 年前
当前提交
e59140f8
共有 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) {

正在加载...
取消
保存