Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2018.4
2019.2
2019.2.4f1
2019.3
2020.1
Issue ID
1191022
Regression
No
Texture's dimensions swap when it's width or height is bigger than 4096px and sprite is created via code
How to reproduce:
1. Open the attached 'TextureLoadBug.zip' project
2. Open 'SampleScene' Scene
3. Enter Play Mode
Expected result: Texture's dimensions are correctly logged and the texture is not rotated at runtime
Actual result: Texture's dimensions are swapped in the log and the texture is rotated at runtime
Reproducible width: 2017.4.33f1, 2018.4.12f1, 2019.2.10f1, 2019.3.b8, 2020.1.0a10
Notes:
- Reproducible with other image formats (png, bmp, tiff)
- Reproducible on macOS, Windows
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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note:
HighResBad.jpg has orientation EXIF tag - originally it was horz image and it was rotated with EXIF (if i understand correctly the second one was "manually" rotated in photoshop). Editor handles it, but runtime jpeg loading ignores EXIF tags completely so it load original horz image.
there are no plans to add EXIF handling at runtime