Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Viewport Dimensions not Checked #2333

Open
codex128 opened this issue Nov 30, 2024 · 0 comments
Open

Camera Viewport Dimensions not Checked #2333

codex128 opened this issue Nov 30, 2024 · 0 comments

Comments

@codex128
Copy link
Contributor

codex128 commented Nov 30, 2024

If the user accidentaly flips the camera's viewport so that left > right or bottom > top, a negative width/height will be sent to glViewport and glScissor which will result in a quiet OpenGL error and flickering issues. It is super easy to mix up the camera's viewport parameters, so I suggest adding a check to ensure that the camera's viewport width and height remain positive.

@stephengold stephengold changed the title Camera Viewport Demensions not Checked Camera Viewport Dimensions not Checked Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant