rtx-remix
rtx-remix copied to clipboard
[Runtime Bug]: Viewport changes causes 3D stretching
Describe the bug
When the D3D9 viewport is not set to the full window the rendered image is stretched incorrectly.
How do you reproduce the bug?
Open a game with an altered viewport Deus Ex when in conversations is one example where on a 1280x720 window the viewport is set as such:
| Name | Value | Type | |
|---|---|---|---|
| ◢ | d3dViewport | {X=0 Y=74 Width=1280 ...} | _D3DVIEWPORT9 |
| X | 0 | unsigned long | |
| Y | 74 | unsigned long | |
| Width | 1280 | unsigned long | |
| Height | 495 | unsigned long | |
| MinZ | 0.00000000 | float | |
| MaxZ | 1.00000000 | float |
What is the expected behavior?
Non stretch 3D graphics are rendered into the specified viewport.
Version
remix-main+bccdf94e bridge: remix-main+8248167a
Logs
No response
Crash dumps
No response
Media
Without remix:
With remix:
https://github.com/user-attachments/assets/8fe9f574-eeb7-45f3-9d77-903504c6b4ae
REMIX-3530 for tracking