Search Issue Tracker

Active

Under Consideration for 2023.2.X

Votes

0

Found in

2021.3.4f1

2022.1.1f1

2022.2.0a15

2023.1.0a17

2023.2.0a1

2023.3.0a3

6000.0.0b11

Issue ID

UUM-2547

Regression

No

[OpenGLES3][Android] Forcing Screen Orientation breaks on Android with OpenGLES3 if resolution has been set to itself

--

-

Reproduction steps:
1. Open the attached user's project "TestAndroidRotation.zip"
2. Switch platform to Android and make sure Graphics API is set to OpenGLES3
3. Build for Android
4. With the phone flat on the table and in portrait, launch the application
5. Press the button "Set Res: Native"
6. Press the button "Limit Orientation: Landscape"

Expected result: The rendered area does not take up half the screen and is rendered fully
Actual result: The rendered area only takes up half of the screen (See attached Results.png)

Reproduces on: 2021.3.4f1, 2022.1.1f1, 2022.2.0a15, 2023.1.a17
Could not test on 2019.4.39f1, 2020.3.34f1 due to Android resource linking failed 'AndroidManifest.xml:28:9-50:20: AAPT: error: '2,2' is incompatible with attribute maxAspectRatio (attr) float.'

Reproducible with these devices:
N/A, Google Pixel 3 (Pixel 3), Android 12, CPU: Snapdragon 845, GPU: Adreno (TM) 630
N/A, Samsung Galaxy S10 (SM-G975F), Android 10, CPU: Exynos 9820 (ARMv8), GPU: Mali-G76
user devices:
Samsung S10e (Android 12)
Samsung Pixel 3 (Android 12)
Samsung S10+

Not reproducible with these devices:
N/A, Samsung Galaxy Note9 (SM-N9600), Android 9, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
N/A, Samsung Galaxy Note10+ (SM-N975F), Android 9, CPU: Exynos 9 Series 9825, GPU: Mali-G76
N/A, Samsung - (SM-G991U), Android 11, CPU: Snapdragon 888, GPU: Adreno (TM) 660
N/A, Samsung Galaxy Z Flip3 5G (SM-F711B), Android 11, CPU: Snapdragon 888, GPU: Adreno (TM) 660
VLNQA00001, Google Pixel 2 (Pixel 2), Android 11, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00225, Qualcomm null (SDM845 for arm64), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00288, Samsung Galaxy J7 (SM-J730F), Android 8.1.0, CPU: Exynos 7 Octa 7870, GPU: Mali-T830
N/A, Huawei - (NOH-NX9), Android 10, CPU: NOT FOUND, GPU: Mali-G78
VLNQA00316, Samsung Galaxy Note10 (SM-N970F), Android 9, CPU: Exynos 9 Series 9825, GPU: Mali-G76

Notes:
-Does not reproduce with Vulkan
-The rendered area on Android only takes up half the screen if you force AutoRotation to Landscape - but ONLY if you've called Screen.SetResolution(Screen.width, Screen.height) that is set the resolution to itself
-Rendering coordinates in RenderDoc are correct, even if only half of the screen is being rendered, the issue seems to be related to window buffers.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.