Search Issue Tracker
Won't Fix
Votes
1
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.9f1
2019.2.0a1
2019.3.0a1
Issue ID
1171155
Regression
No
GL viewport is wrongly scaled when there's a camera which has a partial viewport
How to reproduce:
1. Open attached project "Test.zip" and scene "Main"
2. Enter Play mode
3. In Hierarchy window, select "Camera #2" and enable it
4. Observe the Game view
Expected result: both lines of cubes are on the same scale due to the logic called on OnGUI method
Actual result: the bottom line of cubes is scaled in even if it is called in OnGUI method
Reproducible with: 2017.4.30f1, 2018.4.5f1, 2019.1.12f1, 2019.2.0f1, 2019.3.0a10
Additional steps:
5. In Hierarchy window, select "Main Camera"
6. In Inspector window, "C Main (Script)" -> change "View Port" to "E_Compensate"
Observe Game view. The bottom line of cubes is scaled normally but is clipped
Comments (1)
-
manutoo
Jul 24, 2019 09:14
The issue is GL.LoadPixelMatrix() which uses the last camera viewport (which isn't active anymore) instead of the OnGUI viewport.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
Resolution Note:
Too many users are depending on the existing behaviour for us to change this safely.