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

Allow texture() to accept p5.Texture argument without throwing a warning. #5519

Merged
merged 2 commits into from
Dec 30, 2021

Conversation

aferriss
Copy link
Contributor

@aferriss aferriss commented Dec 27, 2021

Changes:
Small changes to the inline docs to allow texture() and image() to accept p5.Texture objects as arguments without throwing a warning when the arguments get validated. This PR depends on #5517 since texture() & image() in webGL mode call setUniform() under the hood.

We don't currently have any unit tests for texture(), so I haven't added any new ones, but I could probably try and cook something up if we think it is important here. I like wise didn't see much in the way of tests for drawing images.

PR Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants