Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 60a63d8

Browse files
committed
Testing a compiler workaround for #447
1 parent b40105b commit 60a63d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PostProcessing/Runtime/Utils/TextureFormatUtilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ static TextureFormatUtilities()
7272
// In 2018.1 SystemInfo.SupportsRenderTextureFormat() generates garbage so we need to
7373
// cache its calls to avoid that...
7474
s_SupportedRenderTextureFormats = new Dictionary<int, bool>();
75-
var values = Enum.GetValues(typeof(RenderTextureFormat)).Cast<int>();
75+
IEnumerable<int> values = Enum.GetValues(typeof(RenderTextureFormat)).Cast<int>();
7676

77-
foreach (var format in values)
77+
foreach (int format in values)
7878
{
7979
bool supported = SystemInfo.SupportsRenderTextureFormat((RenderTextureFormat)format);
8080
s_SupportedRenderTextureFormats.Add(format, supported);

0 commit comments

Comments
 (0)