Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gemvertexbuffer : glGetActiveAttrib #113
This is a continuation of this unresolved, old thread:
I have identical Pd-Vanilla, Gem, frag/vert files, example-patch running with each, so I started looking at line 538...
... to see where 10.11 deviates.
At line 583, glGetAttribLocation returns a different ordering of locations with 10.11, but they still fall within slots 1-5, so I don't think there is an issue here. "1-5" comes from the 5 attributes in the help-example using brick.frag/brick.vert:
At line 594, glGetActiveAttrib returns incorrect glEnums for the switch/case.
If I edit the attribute function with correct, predefined vbo_dimens (confirmed with print_attributes), the output is still 4 black squares on 10.11.
The added attribute code is very basic so I have no idea why it would work on the older computer only.
Here is a new example patch w/ colortest.vert & colortest.frag.