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

Stop webGL rect() stroke on diagonal / internal faces #2945

Merged
merged 2 commits into from May 24, 2018

Conversation

AidanNelson
Copy link
Member

Fixes #2943.

This stops rendererGL from drawing stroke across the diagonal and internal faces of rectangles by explicitly calculating the strokeIndices. I added a check for detailX and detailY values at or below zero to avoid throwing an error in such cases. Instead, no rectangle will show up on screen (matching current behavior).

@kjhollen
Copy link
Member

nice! looks good. there's a folder of tests that need to be run manually in test/manual-test-examples/webgl, can you add one that tests this is working?

@kjhollen kjhollen merged commit 4124eeb into processing:webgl-gsoc-2018 May 24, 2018
@AidanNelson AidanNelson deleted the rect-stroke-vertices branch June 7, 2018 22:13
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.

None yet

2 participants