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

Bind vertex attributes in the order determined by their ProgramInterface #4795

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

lbud
Copy link
Contributor

@lbud lbud commented Jun 6, 2017

Closes #4794.

In past bugs/fixes #4607/#4688 + #4728/#4793, symbol layers sometimes failed to render because in dynamically linking the symbol shader, a_size was unused but bound to attribute location 0 [explanation, best practices]. Those fixes used a workaround to bind one always-used attribute to location 0 for symbol shaders. This PR instead binds all layout attributes in a fixed order determined by their ProgramInterface (more like the approach in GL Native) lest this crop up again in the future.

@lbud lbud requested a review from jfirebaugh June 6, 2017 21:28
Copy link
Contributor

@jfirebaugh jfirebaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@lbud lbud merged commit bef9966 into master Jun 6, 2017
@lbud lbud deleted the 4794-attribute-bindings branch June 6, 2017 21:39
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.

Manually bind shader attributes Safari 10 / OS X (Retina) sometimes doesn't render symbol layers
2 participants