index.js
function makeLostContextFunctionWrapper(ctx, functionName) {
    var f = ctx[functionName];
    return function() {
      // log("calling:" + functionName);
      // Only call the functions if the context is not lost.
      loseContextIfTime();
      if (!contextLost_) {
        //if (!checkResources(arguments)) {
        //  glErrorShadow_[wrappedContext_.INVALID_OPERATION] = true;
        //  return;
        //}
        var result = f.apply(ctx, arguments);
        return result;
      }
    };
  }
function makeLostContextFunctionWrapper(ctx, functionName) {
    var f = ctx[functionName];
    return function() {
      // log("calling:" + functionName);
      // Only call the functions if the context is not lost.
      loseContextIfTime();
      if (!contextLost_) {
        //if (!checkResources(arguments)) {
        //  glErrorShadow_[wrappedContext_.INVALID_OPERATION] = true;
        //  return;
        //}
        var result = f.apply(ctx, arguments);
        return result;
      }
    };
  }
function makeLostContextFunctionWrapper ( ctx , functionName ) { var f = ctx [ functionName ] ; return function ( ) { // log("calling:" + functionName); // Only call the functions if the context is not lost. loseContextIfTime ( ) ; if ( ! contextLost_ ) { //if (!checkResources(arguments)) { //  glErrorShadow_[wrappedContext_.INVALID_OPERATION] = true; //  return; //} var result = f . apply ( ctx , arguments ) ; return result ; } } ; }
Makes a function that simulates WebGL when out of context.
Makes a function that simulates WebGL when out of context .