> > I understand that under core profile I need to create at least one VAO. > Would that also be the case under Emscripten? I suppose not. >
Looking through the GLES3 spec it seems that GLES3/WebGL2 has a hidden default vertex array object, so you don't need to create and bind one yourself (like in desktop GL Core Profile) Secondly, and I haven't yet tried to run this on Emscripten, but on Mac if > I try to use a legacy profile (as to not require VAOs), it seems the > glVertexAttribDivisor is no longer supported. This, possibly, is not > critical, because I only use it for debug draw like drawing vertex normals. > In this situation, hardware instancing is most likely implemented via the ARB_instanced_arrays extension, in this case glVertexAttribDivisor() would be called glVertexAttribDivisorARB() (note the ...ARB). > - Under Emscripten: create a legacy profile, don't use VAOsl, disable > debug draw for lack of glVertexAttribDivisor; > - Otherwise: create core profile, create/bind a global VAO, which > allows glVertexAttribDivisor use in debug draw. > > I think that would work. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
