Player avatar not displayed correctly for large window sizes when GUI scaling active
Issue
When setting the GUI scale to 2.0 and increasing the size of the inventory window, the bottom part of the player avatar is not rendered correctly. See attachment.
Screenshot_from_2021-07-01_22-47-37
My wild guess would be that the size of the RTT for the avatar is being miscalculated (i.e., scaling is not taken into account) and that the RTT is simply limited to the next power of two.
Apparently there is some problem with the logic that determines the target rectangle for the RTT.
I'll take a stab at finding and fixing this issue!
How to reproduce
Set the GUI scale to 2.0. Open the game on a 4K monitor. Maximise the inventory window.
Answers to the questions
-
Is the problem OpenMW specific or does it also happen in vanilla Morrowind?
OpenMW specific -
What is your operating system?
Fedora 33. GPU/Mesa version isRadeon RX 570 Series (POLARIS10, DRM 3.40.0, 5.12.13-200.fc33.x86_64, LLVM 11.0.0) (0x67df)
-
What version of OpenMW are you using? If you used a bleeding edge build, state the exact revision used.
Current master, commit 89ca5663 -
What version of Morrowind are you using (i.e. retail CD or Steam)? What addons (Tribunal, Bloodmoon) do you have installed? What language is your Morrowind install?
German GOTY edition -
Do you use any mods? If so, does the problem also occur in a clean vanilla install without any mods?
No mods. -
Are there any error messages in your
openmw.log
file?
No.