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

AGLKVertexAttribArrayBuffer has invalid assertion #1

Open
mkurtzsd opened this issue Aug 5, 2019 · 0 comments
Open

AGLKVertexAttribArrayBuffer has invalid assertion #1

mkurtzsd opened this issue Aug 5, 2019 · 0 comments

Comments

@mkurtzsd
Copy link

mkurtzsd commented Aug 5, 2019

I noticed in this newest version of the AGLK code base, in prepareToDrawWithAttrib:numberOfCoordinates:attribOffset:shouldEnable:, the first assertion changed from count <= 4 to count < 4. This is causing an assertion failure (crash) in my code when attempting to use the buffer to hold a color (GLKVector4) with the attribute GLKVertexAttribColor. In the book, I didn't see any use of this attribute in the examples (or I missed it) so perhaps this change was an oversight.

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

No branches or pull requests

1 participant