浏览代码

fix msaaSamples parameter error when msaa is disable: Error caught by scheduler library, thrown during a scheduler callback. RenderTextureDesc msaaSamples must be 1, 2, 4, or 8.

/main
fzhangtj 6 年前
当前提交
2c08ff1b
共有 3 个文件被更改,包括 5 次插入17 次删除
  1. 6
      Runtime/editor/surface.cs
  2. 8
      Packages.meta
  3. 8
      ProjectSettings.meta

6
Runtime/editor/surface.cs


var desc = new RenderTextureDescriptor(
(int) this.size.width, (int) this.size.height,
RenderTextureFormat.Default, 24) {
msaaSamples = QualitySettings.antiAliasing,
if (QualitySettings.antiAliasing != 0)
{
desc.msaaSamples = QualitySettings.antiAliasing;
}
this._renderTexture = new RenderTexture(desc);
}

8
Packages.meta


fileFormatVersion: 2
guid: 293317a3a72e54b97ba6778f397ed4d3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
ProjectSettings.meta


fileFormatVersion: 2
guid: fdd664f0957bb49de899fc89820d4e58
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存