Hi Jukka I found my trouble,

the code was : 

    m_program = glCreateProgram();
    if ( !m_program )
        error::throw_ex("unable to create GLSL program",__FILE__,__LINE__);
    
    glBindAttribLocation(m_program, 0, "a_position");
    glBindAttribLocation(m_program, 1, "a_color");
    glBindAttribLocation(m_program, 2, "a_texCoord0");

    for ( auto it = shaders.begin(); it != shaders.end(); ++it )
        glAttachShader(m_program, *it);

As you see the attach shader was call after bindAttrib, if I change the 
order call the attachShader before it's working :)

Theorically must be work natively, but may be some limitation in webgl, 
anyway thanks for the link

Tony

-- 
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/groups/opt_out.

Reply via email to