[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] Re: [webgl-dev-list] uniform and attribute names
This has just broken our code, although in investigating it, we've discovered some very large differences in browser behaviour on a trivial example:
The code creates a WebGL context and compiles and links a trivial shader.
The fragment and vertex shaders have been minified with glsl-unit , and as a result the same name "c" is used for a uniform in the fragment shader and as an attribute in the vertex shader.
The results are:
Chrome 29 (Mac OS X):
success, linking passes
Chrome 31 (Linux):
linking fails with a "Name conflicts between an uniform and an attribute", as expected
lots of weird compiler errors and inconsistent return values:
fragment shader compile status = true
fragment shader info log = Shader compilation errors
vertex shader compile status = false
vertex shader info log = Shader compilation errors
(0, 0): Internal compiler error
program link status = false
program info log = Shader has not been successfully compiled
Firefox 23 (Mac OS X) and 24 (Linux):
no output whatsoever - nothing, nada, zilch
So, the Chrome behaviour is as expected, but IE11 is broken, and Firefox is just weird.
Does anyone know why Firefox does not seem to run the example at all?
+41 21 619 10 13 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)