Skip to content

Commit a69c830

Browse files
committed
skip imageassert.allocatememory() on Mac
1 parent 006db37 commit a69c830

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.yamato/osx_metal-hdrp-2020.2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
test_projects:
55
- name: HDRPUTS_GraphicsTest-2020.2
66
unity_versions:
7-
# - name: 2020.3
7+
- name: 2020.3
88
- name: 2021.1
99
---
1010
{% for test_project in test_projects %}

TestProjects/HDRPUTS_GraphicsTest-2020.2/Assets/Tests/HDRPUTS_GraphicsTests/HDRPUTS_GraphicsTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public IEnumerator Run(GraphicsTestCase testCase)
7979

8080
// 2D Renderer is currently allocating memory, skip it as it will always fail GC alloc tests.
8181
//var additionalCameraData = mainCamera.GetHDRPAdditionalCameraData();
82+
#if UNITY_EDITOR_OSX
83+
#else
8284
bool is2DRenderer = false; // additionalCameraData.scriptableRenderer is Renderer2D;
8385

8486
if (!is2DRenderer)
@@ -94,6 +96,7 @@ public IEnumerator Run(GraphicsTestCase testCase)
9496
if (allocatesMemory)
9597
Assert.Fail("Allocated memory when rendering what is on main camera");
9698
}
99+
#endif
97100
}
98101

99102
public static Texture2D LoadPNG(string filePath)

0 commit comments

Comments
 (0)