Skip to content

jeo19/blearexp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP attempt to re-write https://github.com/sindresorhus/blear using React Native / Expo / gl-react.

To get it to work fast

Open node_modules/expo/src/GLView.js and add the following after wrapMethods(gl):

const oldGetProgramParameter = gl.getProgramParameter;
gl.getProgramParameter = (program, pname) => {
  if (!program.programParameterCache) {
    program.programParameterCache = {};
  }
  if (program.programParameterCache[pname] === undefined) {
    const v = oldGetProgramParameter.call(gl, program, pname);
    program.programParameterCache[pname] = v;
    return v;
  }
  return program.programParameterCache[pname];
};

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%