Skip to content

Commit 2c0c537

Browse files
[PPV2] Post Processing 3.5.0 (#8172)
* Restored `isAndroidOpenGL` breaking change * Update CHANGELOG
1 parent 6a02f0e commit 2c0c537

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

com.unity.postprocessing/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111

1212
### Fixed
1313
- Remove support for PVRTC format in Unity 6.1 or newer
14-
- Fixed issue with FastSign on WebGL/Safari (IN-71005)
1514
- Fixed compute based effects not supported on OpenGLES
15+
- Fixed issue with FastSign on WebGL/Safari (IN-71005)
1616
- Documentation updates
1717

1818
## [3.4.0] - 2023-12-11

com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,15 @@ public static bool isVREnabled
850850
}
851851

852852
/// <summary>
853-
/// Returns <c>true</c> if the target platform is does not support compute and the selected API is OpenGL,
854-
/// <c>false</c> otherwise.
853+
/// Returns <c>true</c> if the target platform is Android and the selected API is OpenGL, <c>false</c> otherwise.
854+
/// </summary>
855+
public static bool isAndroidOpenGL
856+
{
857+
get { return Application.platform == RuntimePlatform.Android && SystemInfo.graphicsDeviceType != GraphicsDeviceType.Vulkan; }
858+
}
859+
860+
/// <summary>
861+
/// Returns <c>true</c> if the selected API is OpenGLES, <c>false</c> otherwise.
855862
/// </summary>
856863
public static bool isOpenGLES
857864
{
@@ -863,8 +870,7 @@ public static bool isOpenGLES
863870
}
864871

865872
/// <summary>
866-
/// Returns <c>true</c> if the target platform is WebGL,
867-
/// <c>false</c> otherwise.
873+
/// Returns <c>true</c> if the target platform is WebGL, <c>false</c> otherwise.
868874
/// </summary>
869875
public static bool isWebNonWebGPU
870876
{

0 commit comments

Comments
 (0)