Closed
Description
Prerequisites
- I have verified this issue is not present in the
develop
branch - I have searched open and closed issues to ensure it has not already been reported.
MonoGame Version
MonoGame 3.8.1.303
Which MonoGame platform are you using?
MonoGame Cross-Platform Desktop Application (mgdesktopgl)
Operating System
Windows
Description
GraphicsDevice.ScissorRectangle is set to wrong value if GraphicsDevice.Clear is called.
Initially ScissorRectangle is set to the window size on the initialization:
And seems that it never gets updated.
Steps to Reproduce
- Unpack the attached sample, open in the IDE and run.
- Resize the window.
- Notice that the image gets cut. That happens because of the wrong Graphics.ScissorRectangle.
Minimal Example Repo
No response
Expected Behavior
GraphicsRectangle should be synchronized with the ViewPort. That's how it works for MonoGame.WindowsDX.
Resulting Behavior
scissorBug.mp4
Files
Metadata
Metadata
Assignees
Labels
No labels