> On Aug 15, 2016, at 8:21 AM, LJA <[email protected]> wrote:
> 
> I now tested the same code in chrome. The attribute in question is 
> "a_position". It's nothing I'm using in my shaders, but doing a search in my 
> project reveals that SDL has some built in shader using it.
> Why am I seeing errors from a SDL shader after compiling my own shaders?

Are you saying Chrome gives you the same error but with the attribute name 
"a_position”?

“a_position” is a very common attribute name so it may not be SDL’s that you 
are seeing. For it to be SDL’s you would have to be using the same “programID” 
value as SDL when you call glLinkProgram and SDL would have had to call 
BindAttribLocation before your call your gr_createProgram function. It is 
possible that Emscripten’s OpenGL ES to WebGL wrapper could have such a problem 
but I am unaware of any previous reports like this. The presence of “webgl” in 
the name in the initial error certainly looks like WebGL shader validation name 
mangling but perhaps Emscripten does name mangling as well.
Regards

    -Mark

--

 <http://www.edgewise-consulting.com/>  Mark Callow
President
www.edgewise-consulting.com <http://www.edgewise-consulting.com/>

-- 
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.

Reply via email to