Skip to main content
4 events
when toggle format what by license comment
Feb 6, 2013 at 0:56 comment added Maximus Minimus You should also check for GL_ARB_explicit_attrib_location which would allow you to use layout(location= with older GL_VERSIONs, and which in practice will work on any GL2.1 hardware for which a reasonably up to date driver is available. On the other hand you may prefer to not have a third shader variation, but that should be manageable with some #defines.
Feb 5, 2013 at 17:36 comment added Zhen Thanks, I'm using layout + location syntax in the 3.30 version of the shader, but with 1.20 it's not available. I assumed that attributes were listed the same order that source code declarations. WRONG, I addded glBindAttribLocation and now it works.
Feb 5, 2013 at 17:32 vote accept Zhen
Feb 5, 2013 at 17:16 history answered Maximus Minimus CC BY-SA 3.0