function initGL(canvas, antialias, alpha)
{
  var gl = null;
  try {
    gl = canvas.getContext("experimental-webgl",
                           {"alpha": alpha, "antialias":antialias});
  } catch (e) {}
  if (!gl) {
    try {
      gl = canvas.getContext("webgl");
    } catch (e) { }
  }
  return gl;
}
// TODO: We should test premultiplyAlpha as well.
We should test premultiplyAlpha as well.
We should test premultiplyAlpha as well .
function initGL(canvas, antialias, alpha)
{
  var gl = null;
  try {
    gl = canvas.getContext("experimental-webgl",
                           {"alpha": alpha, "antialias":antialias});
  } catch (e) {}
  if (!gl) {
    try {
      gl = canvas.getContext("webgl");
    } catch (e) { }
  }
  return gl;
}
function initGL ( canvas , antialias , alpha ) { var gl = null ; try { gl = canvas . getContext ( "experimental-webgl" , { "alpha" : alpha , "antialias" : antialias } ) ; } catch ( e ) { } if ( ! gl ) { try { gl = canvas . getContext ( "webgl" ) ; } catch ( e ) { } } return gl ; }
TODO: We should test premultiplyAlpha as well.
TODO : We should test premultiplyAlpha as well .