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

Clamp the drawbuffer size to a minnimum, add more tests, and cleanups. #62

Merged
merged 2 commits into from Aug 27, 2016

Conversation

@emilio
Copy link
Member

emilio commented Aug 27, 2016

The tests in the first round were unsuccessful attempts to reproduce servo/servo#12320.

The second commit fixes that.

r? @jdm

emilio added 2 commits Aug 27, 2016
Figured I'd rather have them.
When a framebuffer size is zero the reported status by OpenGL is (correctly) not
FRAMEBUFFER_COMPLETE.

We can't avoid creating a draw buffer for this, since we need to be able to
execute actual GL calls. We could return an error, but I don't think that's what
other implementations do.

Instead, clamp the draw buffer size to a minimum of 16 pixels.
@jdm jdm merged commit 5c39226 into master Aug 27, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@jdm
Copy link
Member

jdm commented Aug 27, 2016

Makes sense!

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.