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

NoClear() Extension : fixes NPE Issue #1 #2

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

CodeCox
Copy link
Contributor

@CodeCox CodeCox commented Nov 22, 2018

Added a check for the case when the program window is minimised i.e. width 0 and height 0.

The fail is on the create RenderTarget but I added the check to the broader context because it does not makes sense to delete any existing drawing buffers when the window is minimised i.e. the draw loop is still going at full tilt in the background even though the window is not visible.

Also, a window size event can result in one or both of these being set to 0.

@edwinRNDR edwinRNDR merged commit a25a1c5 into openrndr:master Nov 22, 2018
@edwinRNDR
Copy link
Member

Thanks!

@CodeCox CodeCox deleted the fix-null-issue1 branch November 24, 2018 08:20
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

Successfully merging this pull request may close these issues.

2 participants