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

Commit 6ae07e8

Browse files
committed
Added a safe guard
1 parent 09aafe8 commit 6ae07e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PostProcessing/Runtime/Utils/TextureFormatUtilities.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ static TextureFormatUtilities()
7777

7878
foreach (var format in values)
7979
{
80+
if ((int)format < 0) // Safe guard, negative values are deprecated stuff
81+
continue;
82+
8083
bool supported = SystemInfo.SupportsRenderTextureFormat((RenderTextureFormat)format);
8184
s_SupportedRenderTextureFormats.Add((int)format, supported);
8285
}

0 commit comments

Comments
 (0)