From 340942a9c064a0b8f57623e21674173933c091b9 Mon Sep 17 00:00:00 2001 From: Ben Grater Date: Thu, 12 Jun 2025 16:08:48 -0700 Subject: [PATCH 1/2] Remove PVRTC support on Unity 6.1 and newer --- .../PostProcessing/Runtime/Utils/TextureFormatUtilities.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com.unity.postprocessing/PostProcessing/Runtime/Utils/TextureFormatUtilities.cs b/com.unity.postprocessing/PostProcessing/Runtime/Utils/TextureFormatUtilities.cs index fc92663d651..bec85d156e0 100644 --- a/com.unity.postprocessing/PostProcessing/Runtime/Utils/TextureFormatUtilities.cs +++ b/com.unity.postprocessing/PostProcessing/Runtime/Utils/TextureFormatUtilities.cs @@ -45,10 +45,12 @@ static TextureFormatUtilities() { (int)TextureFormat.DXT1Crunched, RenderTextureFormat.ARGB32 }, { (int)TextureFormat.DXT5Crunched, RenderTextureFormat.ARGB32 }, #endif + #if !UNITY_6000_1_OR_NEWER { (int)TextureFormat.PVRTC_RGB2, RenderTextureFormat.ARGB32 }, { (int)TextureFormat.PVRTC_RGBA2, RenderTextureFormat.ARGB32 }, { (int)TextureFormat.PVRTC_RGB4, RenderTextureFormat.ARGB32 }, { (int)TextureFormat.PVRTC_RGBA4, RenderTextureFormat.ARGB32 }, + #endif #if !UNITY_2018_1_OR_NEWER { (int)TextureFormat.ATC_RGB4, RenderTextureFormat.ARGB32 }, { (int)TextureFormat.ATC_RGBA8, RenderTextureFormat.ARGB32 }, From fe225313a60e6111e3ff08cb316c9614bc026bbc Mon Sep 17 00:00:00 2001 From: Ben Grater Date: Thu, 12 Jun 2025 16:14:05 -0700 Subject: [PATCH 2/2] Update CHANGELOG --- com.unity.postprocessing/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.postprocessing/CHANGELOG.md b/com.unity.postprocessing/CHANGELOG.md index c07022d8276..3471a2fb693 100644 --- a/com.unity.postprocessing/CHANGELOG.md +++ b/com.unity.postprocessing/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added Switch2 platform support ### Fixed -- +- Remove support for PVRTC format in Unity 6.1 or newer ## [3.4.0] - 2023-12-11