0.7.6 live examples blank canvas in Chrome 5.0.375.99
-
Carl Witty
I believe this problem was due to a bug in Chrome (I'm guessing http://code.google.com/p/chromium/issues/detail?id=40175). When I upgraded to the "unstable" branch of Chrome (version 6.0.466.0 dev), the problem went away.
But I also tracked down the problem and found a workaround. I don't know if you're interested, but if so, here it is:
gl.getActiveUniform was producing uniform names that had a trailing NUL. For instance, see this excerpt from the log:
gl.getActiveUniform(program0, 0);
var uniformLocation0 = gl.getUniformLocation(program0, 'uAmbient\u0000');
gl.getActiveUniform(program0, 1);
var uniformLocation1 = gl.getUniformLocation(program0, 'uLightColor0\u0000');
The uniforms were then entered into the uniforms[] array under these names. Then, when you tried to look them up (in setUniform()) under the correct name, they weren't found.I produced a patch (attached) which fixed the problem for me in the old version of Chrome.
(My first attempt didn't rename u.name to u_name; that didn't work. Evidently whatever kind of object u is silently ignores writes to .name .)
If you do apply this patch (or a similar one), and want me to test it, let me know and I'll downgrade Chrome back to the buggy version to do the test.
-
lindsay.kay (at xeolabs)
Nice one Carl, patch looks good.
I'll apply that one tomorrow morning and get back to you.
Thanks!
-
lindsay.kay (at xeolabs)
- Milestone set to V0.7.7
-
lindsay.kay (at xeolabs)
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
